:root {
    --bg-cream: #f8fcf4;
    --bg-soft: #f4fbf1;
    --bg-accent: #f4fbff;
    --line: #dbead3;
    --text-main: #423433;
    --text-muted: #7f6d69;
    --primary: #9ccf7b;
    --primary-dark: #6fa35a;
    --primary-rgb: 156, 207, 123;
    --primary-light: #b8dd9d;
    --primary-soft-rgb: 237, 247, 231;
    --primary-glow-rgb: 214, 236, 199;
    --secondary: #7fc8d7;
    --card: rgba(255, 255, 255, 0.88);
    --shadow: 0 18px 40px rgba(152, 118, 110, 0.12);
    --radius-xl: 28px;
}

body {
    min-height: 100vh;
    font-family: "Be Vietnam Pro", "Segoe UI", sans-serif;
    color: var(--text-main);
    background:
        radial-gradient(circle at top left, rgba(var(--primary-glow-rgb), 0.7), transparent 28%),
        radial-gradient(circle at top right, rgba(210, 241, 248, 0.6), transparent 24%),
        linear-gradient(180deg, #fcfef9 0%, var(--bg-cream) 100%);
}

a {
    color: var(--primary-dark);
    text-decoration: none;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: rgba(248, 252, 244, 0.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(var(--primary-rgb), 0.12);
}

.navbar-brand,
.fw-bold {
    letter-spacing: -0.03em;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-color: transparent;
    box-shadow: 0 12px 24px rgba(var(--primary-rgb), 0.24);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    border-color: transparent;
}

.btn-soft {
    background: #fff;
    border: 1px solid rgba(127, 200, 215, 0.32);
    color: var(--text-main);
}

.btn-google {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 0.9rem 1.2rem;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(66, 133, 244, 0.18);
    box-shadow: 0 10px 24px rgba(66, 133, 244, 0.08);
    color: var(--text-main);
    font-weight: 600;
}

.btn-google:hover {
    background: #fff;
    border-color: rgba(66, 133, 244, 0.34);
    color: var(--text-main);
}

.btn-google-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    box-shadow: inset 0 0 0 1px rgba(66, 133, 244, 0.08);
}

.auth-divider {
    position: relative;
    text-align: center;
}

.auth-divider::before {
    content: "";
    position: absolute;
    inset: 50% 0 auto;
    border-top: 1px solid rgba(152, 118, 110, 0.16);
}

.auth-divider span {
    position: relative;
    z-index: 1;
    display: inline-block;
    padding: 0 1rem;
    background: rgba(255, 255, 255, 0.92);
    color: var(--text-muted);
    font-size: 0.92rem;
}

.hero-card,
.card-soft,
.admin-card,
.product-card {
    background: var(--card);
    border: 1px solid rgba(255, 255, 255, 0.45);
    box-shadow: var(--shadow);
    border-radius: var(--radius-xl);
}

.hero-card {
    overflow: hidden;
}

.section-title {
    font-size: clamp(1.8rem, 3vw, 2.7rem);
    font-weight: 800;
    letter-spacing: -0.04em;
}

.section-subtitle {
    color: var(--text-muted);
    max-width: 620px;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .4rem .85rem;
    background: rgba(var(--primary-rgb), 0.15);
    border-radius: 999px;
    color: var(--primary-dark);
    font-size: .85rem;
    font-weight: 600;
}

.product-card img,
.news-thumb,
.thumb-preview {
    border-radius: 22px;
    object-fit: cover;
}

.admin-tree-name {
    --tree-depth: 0;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-height: 2.4rem;
    padding-left: calc(var(--tree-depth) * 1.8rem);
}

.admin-tree-name.is-root .admin-tree-title {
    font-weight: 800;
}

.admin-tree-branch {
    width: 1.1rem;
    height: 1.45rem;
    margin-left: -0.35rem;
    border-left: 2px solid rgba(var(--primary-rgb), 0.35);
    border-bottom: 2px solid rgba(var(--primary-rgb), 0.35);
    border-bottom-left-radius: 0.45rem;
    flex: 0 0 auto;
}

.admin-tree-thumb {
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 0.8rem;
    object-fit: cover;
    background: #f4fbf1;
    border: 1px solid rgba(var(--primary-rgb), 0.16);
}

.admin-tree-title {
    min-width: 0;
}

.admin-tree-level {
    display: inline-flex;
    align-items: center;
    margin-left: auto;
    padding: 0.28rem 0.65rem;
    border-radius: 999px;
    background: rgba(var(--primary-rgb), 0.13);
    color: var(--primary-dark);
    font-size: 0.78rem;
    font-weight: 800;
    white-space: nowrap;
}

.price-main {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary-dark);
}

.price-old {
    color: var(--text-muted);
    text-decoration: line-through;
}

.site-footer {
    background: rgba(255, 255, 255, 0.68);
    border-top: 1px solid rgba(var(--primary-rgb), 0.12);
}

.susu-breadcrumb {
    --bs-breadcrumb-divider-color: rgba(127, 109, 105, 0.65);
    --bs-breadcrumb-item-active-color: var(--text-muted);
    font-size: 0.92rem;
}

.susu-breadcrumb a {
    color: var(--text-muted);
}

.product-detail-shell {
    overflow: visible;
}

.product-gallery-main {
    border-radius: 26px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(var(--primary-soft-rgb), 0.92), rgba(248, 251, 255, 0.86));
    border: 1px solid rgba(var(--primary-rgb), 0.1);
}

.product-gallery-main img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.product-gallery-single .product-gallery-main {
    margin-bottom: 0 !important;
}

.product-gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
    gap: 0.9rem;
    align-items: start;
}

.product-gallery-thumb {
    padding: 0;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(var(--primary-rgb), 0.14);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(152, 118, 110, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.product-gallery-thumb img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.product-gallery-thumb:hover,
.product-gallery-thumb.is-active {
    transform: translateY(-4px);
    border-color: rgba(var(--primary-rgb), 0.4);
    box-shadow: 0 16px 30px rgba(var(--primary-rgb), 0.16);
}

.product-detail-panel {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.product-metric-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.product-metric-card,
.product-favorite-btn {
    min-height: 4.1rem;
    border-radius: 22px;
    padding: 0.85rem 1rem;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(var(--primary-rgb), 0.12);
    box-shadow: 0 10px 24px rgba(152, 118, 110, 0.08);
}

.product-metric-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.15rem;
    min-width: 140px;
}

.product-metric-label {
    color: var(--text-muted);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.product-metric-value {
    font-size: 1.1rem;
    font-weight: 700;
}

.product-share-card {
    position: relative;
    min-width: 170px;
}

.product-share-trigger,
.product-favorite-btn {
    color: var(--text-main);
    font-weight: 700;
}

.product-share-trigger {
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    text-align: left;
}

.product-share-links {
    position: absolute;
    top: calc(100% + 0.55rem);
    left: 0;
    min-width: 170px;
    display: none;
    flex-direction: column;
    gap: 0.45rem;
    padding: 0.65rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(var(--primary-rgb), 0.14);
    box-shadow: 0 18px 40px rgba(152, 118, 110, 0.16);
    z-index: 8;
}

.product-share-card.is-open .product-share-links {
    display: flex;
}

.product-share-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.5rem;
    border-radius: 14px;
    border: 1px solid rgba(127, 200, 215, 0.18);
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-main);
    font-size: 0.92rem;
    font-weight: 600;
}

.product-share-link:hover {
    color: var(--text-main);
    border-color: rgba(var(--primary-rgb), 0.32);
}

.product-favorite-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    border: 1px solid rgba(var(--primary-rgb), 0.12);
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.product-favorite-btn:hover,
.product-favorite-btn.is-active {
    transform: translateY(-1px);
    background: rgba(var(--primary-soft-rgb), 0.95);
    color: var(--primary-dark);
}

.product-favorite-icon {
    font-size: 1.25rem;
    line-height: 1;
}

.product-buy-box {
    border-radius: 28px;
}

.product-stock-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 0.85rem;
    border-radius: 999px;
    background: rgba(var(--primary-rgb), 0.12);
    color: var(--primary-dark);
    font-size: 0.9rem;
    font-weight: 600;
}

.voucher-line {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    color: var(--text-main);
}

.product-description {
    color: var(--text-muted);
    line-height: 1.8;
}

.product-spec-table th,
.product-spec-table td {
    padding: 0.95rem 1rem;
    vertical-align: top;
    border-color: rgba(var(--primary-rgb), 0.12);
}

.product-spec-table th {
    width: 34%;
    background: rgba(127, 200, 215, 0.08);
    color: var(--text-main);
    font-weight: 700;
}

.product-spec-table td {
    color: var(--text-muted);
}

.product-rating-summary {
    min-width: 180px;
}

.product-rating-score {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
}

.product-rating-stars {
    display: flex;
    justify-content: flex-end;
    gap: 0.15rem;
    margin: 0.45rem 0;
    font-size: 1rem;
    color: rgba(var(--primary-rgb), 0.28);
}

.product-rating-stars .is-filled {
    color: #f4b63f;
}

.review-notice {
    padding: 1rem 1.15rem;
    border-radius: 22px;
    border: 1px solid rgba(127, 200, 215, 0.16);
    background: rgba(255, 255, 255, 0.84);
    color: var(--text-main);
    box-shadow: 0 12px 28px rgba(152, 118, 110, 0.08);
}

.review-notice-info {
    border-color: rgba(127, 200, 215, 0.22);
    background: rgba(244, 251, 255, 0.92);
}

.review-notice-warning {
    border-color: rgba(244, 182, 63, 0.22);
    background: rgba(255, 249, 236, 0.92);
}

.review-notice-success {
    border-color: rgba(78, 185, 116, 0.2);
    background: rgba(242, 252, 246, 0.94);
}

.review-star-picker {
    display: inline-flex;
    flex-direction: row-reverse;
    gap: 0.35rem;
}

.review-star-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.review-star-label {
    cursor: pointer;
    font-size: 2rem;
    line-height: 1;
    color: rgba(var(--primary-rgb), 0.28);
    transition: transform 0.18s ease, color 0.18s ease;
}

.review-star-label:hover,
.review-star-label:hover ~ .review-star-label,
.review-star-input:checked ~ .review-star-label {
    color: #f4b63f;
    transform: translateY(-1px);
}

.review-item-rating {
    display: inline-flex;
    gap: 0.12rem;
    font-size: 1rem;
    color: rgba(var(--primary-rgb), 0.24);
}

.review-item-rating .is-filled {
    color: #f4b63f;
}

.review-avatar {
    width: 3rem;
    height: 3rem;
    border-radius: 999px;
    object-fit: cover;
}

.footer-shell {
    position: relative;
    background:
        radial-gradient(circle at top left, rgba(var(--primary-glow-rgb), 0.52), transparent 32%),
        radial-gradient(circle at bottom right, rgba(217, 241, 248, 0.5), transparent 28%),
        rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.62);
    border-radius: 32px;
    box-shadow: 0 20px 48px rgba(152, 118, 110, 0.12);
    overflow: hidden;
}

.footer-kicker {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.95rem;
    border-radius: 999px;
    background: rgba(var(--primary-rgb), 0.14);
    color: var(--primary-dark);
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.footer-title {
    max-width: 18ch;
    font-size: clamp(1.7rem, 2.6vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.08;
}

.footer-heading {
    margin-bottom: 1rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
}

.footer-link-list,
.footer-note-list,
.footer-meta {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-link-list a {
    color: var(--text-main);
    font-weight: 500;
    transition: color 0.2s ease, transform 0.2s ease;
}

.footer-link-list a:hover {
    color: var(--primary-dark);
    transform: translateX(2px);
}

.footer-badge-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.footer-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(var(--primary-rgb), 0.16);
    color: var(--text-main);
    font-size: 0.92rem;
    font-weight: 600;
}

.footer-note-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1rem 1.05rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(var(--primary-rgb), 0.12);
}

.footer-note-item strong {
    font-size: 0.98rem;
}

.footer-note-item span,
.footer-meta span {
    color: var(--text-muted);
    line-height: 1.55;
}

.footer-divider {
    height: 1px;
    margin: 2rem 0 1.25rem;
    background: linear-gradient(90deg, rgba(var(--primary-rgb), 0), rgba(var(--primary-rgb), 0.2), rgba(127, 200, 215, 0.2), rgba(127, 200, 215, 0));
}

.footer-bottom {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem 2rem;
}

.footer-meta strong {
    font-size: 1rem;
}

.admin-body {
    background: linear-gradient(180deg, #fdfefb 0%, #f3f8ef 100%);
}

.admin-shell {
    display: flex;
    min-height: 100vh;
    position: relative;
    background:
        radial-gradient(circle at top left, rgba(var(--primary-glow-rgb), 0.72), transparent 24%),
        radial-gradient(circle at top right, rgba(217, 241, 248, 0.62), transparent 22%),
        linear-gradient(180deg, #fdfefb 0%, #f3f8ef 100%);
}

.admin-sidebar {
    width: 280px;
    flex: 0 0 280px;
    background: rgba(255, 255, 255, 0.78);
    border-right: 1px solid rgba(var(--primary-rgb), 0.12);
    box-shadow: 12px 0 32px rgba(152, 118, 110, 0.06);
    backdrop-filter: blur(18px);
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    transition: width 0.28s ease, flex-basis 0.28s ease, opacity 0.28s ease, transform 0.28s ease, box-shadow 0.28s ease;
}

.admin-brand {
    border-bottom: 1px solid rgba(var(--primary-rgb), 0.12);
    margin-bottom: 0.5rem;
}

.admin-nav {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.admin-sidebar .nav-link {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    color: var(--text-main);
    border-radius: 14px;
    padding: 0.7rem 0.9rem;
    font-weight: 600;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.admin-sidebar .nav-link:hover {
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--text-main);
    transform: translateX(2px);
}

.admin-sidebar .nav-link.active {
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.18), rgba(127, 200, 215, 0.18));
    color: #3d2f2f;
    box-shadow: inset 0 0 0 1px rgba(var(--primary-rgb), 0.14);
}

.admin-menu-group {
    border: 1px solid rgba(var(--primary-rgb), 0.12);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.54);
    overflow: hidden;
}

.admin-menu-group[open] {
    background: rgba(255, 255, 255, 0.82);
}

.admin-menu-summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 0.95rem;
    font-weight: 700;
    color: var(--text-main);
}

.admin-menu-summary::-webkit-details-marker {
    display: none;
}

.admin-menu-summary::after {
    content: "";
    width: 0.55rem;
    height: 0.55rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
    margin-right: 0.2rem;
}

.admin-menu-group:not([open]) .admin-menu-summary::after {
    transform: rotate(-45deg);
}

.admin-subnav {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0 0.35rem 0.55rem;
}

.admin-subnav .nav-link {
    font-size: 0.96rem;
    padding-left: 1rem;
}

.admin-nav-badge {
    margin-left: auto;
    min-width: 1.65rem;
    min-height: 1.65rem;
    padding: 0.18rem 0.48rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #dc3545;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 10px 20px rgba(220, 53, 69, 0.22);
}

.admin-main {
    flex: 1;
    min-width: 0;
    background: transparent;
    transition: margin-left 0.28s ease, width 0.28s ease;
}

.admin-sidebar-toggle,
.admin-sidebar-close {
    border: 1px solid rgba(var(--primary-rgb), 0.22);
    background: rgba(255, 255, 255, 0.94);
    color: var(--text-main);
    box-shadow: 0 12px 30px rgba(152, 118, 110, 0.14);
}

.admin-sidebar-toggle {
    position: fixed;
    top: 1.1rem;
    left: 1.1rem;
    z-index: 1089;
    width: 3rem;
    height: 3rem;
    border-radius: 999px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    transition: left 0.28s ease, background 0.2s ease, transform 0.2s ease;
}

.admin-sidebar-toggle:hover,
.admin-sidebar-close:hover {
    background: #fff;
    transform: translateY(-1px);
}

.admin-sidebar-actions {
    display: grid;
    gap: 0.65rem;
}

.admin-sidebar-action-btn {
    min-height: 2.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    font-weight: 700;
}

.admin-sidebar-action-btn [data-theme-toggle-icon] {
    min-width: 2.2rem;
    min-height: 1.55rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(var(--primary-rgb), 0.12);
    color: var(--primary-dark);
    font-size: 0.72rem;
}

.admin-sidebar-toggle span {
    display: block;
    width: 1.15rem;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transition: transform 0.24s ease, opacity 0.24s ease;
}

.admin-sidebar-close {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    line-height: 1;
    flex: 0 0 auto;
}

.admin-body:not(.sidebar-ready) .admin-sidebar-toggle {
    visibility: hidden;
}

.admin-body.sidebar-collapsed .admin-sidebar {
    width: 0;
    flex-basis: 0;
    opacity: 0;
    transform: translateX(-24px);
    overflow: hidden;
    border-right-color: transparent;
    box-shadow: none;
}

.admin-body.sidebar-collapsed .admin-sidebar-toggle {
    left: 1.1rem;
}

.admin-body:not(.sidebar-collapsed) .admin-sidebar-toggle {
    left: 15.75rem;
}

.admin-body.sidebar-collapsed .admin-sidebar-toggle span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.admin-body.sidebar-collapsed .admin-sidebar-toggle span:nth-child(2) {
    opacity: 0;
}

.admin-body.sidebar-collapsed .admin-sidebar-toggle span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.table thead th {
    background: rgba(127, 200, 215, 0.14);
    border-bottom: 0;
}

.badge {
    text-transform: capitalize;
}

.admin-order-notice {
    border: 1px solid rgba(220, 53, 69, 0.18);
    border-radius: 24px;
    padding: 1rem;
    background:
        linear-gradient(135deg, rgba(255, 244, 230, 0.96), rgba(255, 255, 255, 0.94)),
        rgba(255, 255, 255, 0.92);
    box-shadow: 0 18px 40px rgba(152, 118, 110, 0.12);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.admin-order-notice.is-updated {
    border-color: rgba(220, 53, 69, 0.45);
    box-shadow: 0 22px 46px rgba(220, 53, 69, 0.16);
    transform: translateY(-1px);
}

.admin-order-notice-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.admin-order-notice-kicker {
    color: #b42318;
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
}

.admin-order-notice h2 {
    margin: 0.18rem 0 0.28rem;
    color: var(--text-main);
    font-size: 1.08rem;
    font-weight: 800;
}

.admin-order-notice p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.92rem;
}

.admin-order-notice-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

.admin-order-notice-item {
    display: block;
    padding: 0.85rem 0.95rem;
    border: 1px solid rgba(220, 53, 69, 0.12);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--text-main);
}

.admin-order-notice-item:hover {
    border-color: rgba(220, 53, 69, 0.26);
    color: var(--text-main);
    transform: translateY(-1px);
}

.admin-order-notice-item span,
.admin-order-notice-item small {
    display: block;
    color: var(--text-muted);
    font-size: 0.82rem;
}

.admin-order-notice-item strong {
    display: block;
    margin: 0.2rem 0;
    font-size: 0.96rem;
}

.form-control,
.form-select,
.input-group-text {
    border-radius: 14px;
    border-color: rgba(152, 118, 110, 0.15);
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(var(--primary-rgb), 0.8);
    box-shadow: 0 0 0 .18rem rgba(var(--primary-rgb), 0.18);
}

.flash-stack {
    position: fixed;
    top: 1.25rem;
    right: 1.25rem;
    z-index: 1085;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: min(420px, calc(100vw - 2rem));
    pointer-events: none;
}

.frontend-body .flash-stack {
    top: 5.5rem;
}

.flash-toast {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 1rem 1.1rem;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.65);
    box-shadow: 0 18px 40px rgba(152, 118, 110, 0.18);
    backdrop-filter: blur(18px);
    pointer-events: auto;
    transition: opacity 0.24s ease, transform 0.24s ease;
}

.flash-toast-success {
    background: rgba(230, 247, 239, 0.94);
    color: #1f6a4c;
}

.flash-toast-error {
    background: rgba(255, 236, 236, 0.96);
    color: #9b3f3f;
}

.flash-toast-body {
    flex: 1;
    font-weight: 600;
    line-height: 1.45;
}

.flash-toast-close {
    flex: 0 0 auto;
    width: 2rem;
    height: 2rem;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.6);
    color: inherit;
    font-size: 1.35rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.flash-toast-close:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: scale(1.04);
}

.flash-toast-close:focus-visible {
    outline: none;
    box-shadow: 0 0 0 .18rem rgba(127, 200, 215, 0.18);
}

.flash-toast.is-hiding {
    opacity: 0;
    transform: translateY(-10px) scale(0.98);
}

.cart-qty-control {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
}

.cart-qty-btn {
    width: 2.7rem;
    height: 2.7rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: #fff;
    border: 1px solid rgba(var(--primary-rgb), 0.55);
    color: var(--primary-dark);
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1;
    transition: all 0.2s ease;
}

.cart-qty-btn:hover {
    background: rgba(var(--primary-rgb), 0.08);
    border-color: rgba(var(--primary-rgb), 0.9);
    color: var(--primary-dark);
}

.cart-qty-btn:focus-visible {
    box-shadow: 0 0 0 .18rem rgba(var(--primary-rgb), 0.18);
}

.cart-qty-input {
    width: 4.5rem;
    min-width: 4.5rem;
    text-align: center;
    padding-left: 0.45rem;
    padding-right: 0.45rem;
    font-weight: 600;
}

.cart-qty-input::-webkit-outer-spin-button,
.cart-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.cart-qty-input[type=number] {
    -moz-appearance: textfield;
}

.grid-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.stat-card {
    padding: 1.3rem;
}

.stat-card .number {
    font-size: 1.8rem;
    font-weight: 800;
}

.hero-surface {
    padding: clamp(2rem, 4vw, 4rem);
}

.soft-panel {
    background: rgba(255, 255, 255, 0.72);
    border-radius: 24px;
    padding: 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

@media (max-width: 991.98px) {
    .product-metric-row {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .product-share-card,
    .product-metric-card,
    .product-favorite-btn {
        min-width: 0;
    }

    .product-share-links {
        right: 0;
        left: auto;
    }

    .product-rating-summary {
        min-width: 0;
        text-align: left;
    }

    .product-rating-stars {
        justify-content: flex-start;
    }

    .product-spec-table th {
        width: 38%;
    }

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

    .footer-title {
        max-width: none;
    }

    .footer-bottom {
        flex-direction: column;
    }

    .admin-sidebar {
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        z-index: 1088;
        width: min(86vw, 320px);
        flex-basis: min(86vw, 320px);
        height: 100vh;
    }

    .admin-main {
        width: 100%;
    }

    .admin-order-notice-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-body:not(.sidebar-open) .admin-sidebar {
        transform: translateX(-100%);
        opacity: 0;
        pointer-events: none;
    }

    .admin-body.sidebar-open .admin-sidebar {
        transform: translateX(0);
        opacity: 1;
        pointer-events: auto;
    }

    .admin-body.sidebar-collapsed .admin-sidebar {
        width: min(86vw, 320px);
        flex-basis: min(86vw, 320px);
        overflow: visible;
    }

    .admin-sidebar-toggle {
        left: 1rem;
        top: 1rem;
    }

    .admin-body:not(.sidebar-collapsed) .admin-sidebar-toggle,
    .admin-body.sidebar-collapsed .admin-sidebar-toggle {
        left: 1rem;
    }

    .admin-body.sidebar-open::before {
        content: "";
        position: fixed;
        inset: 0;
        z-index: 1087;
        background: rgba(66, 52, 51, 0.16);
        backdrop-filter: blur(2px);
    }

    .flash-stack,
    .frontend-body .flash-stack {
        top: 1rem;
        right: 1rem;
        left: 1rem;
        width: auto;
    }
}

@media (max-width: 575.98px) {
    .product-metric-row {
        grid-template-columns: minmax(0, 1fr);
    }

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

    .product-spec-table th,
    .product-spec-table td {
        display: block;
        width: 100%;
    }

    .product-spec-table th {
        padding-bottom: 0.3rem;
        border-bottom: 0;
    }

    .product-spec-table td {
        padding-top: 0;
    }
}

.product-card-top {
    position: relative;
}

.wishlist-toggle-btn {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    width: 2.9rem;
    height: 2.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid rgba(var(--primary-rgb), 0.42);
    background: rgba(255, 255, 255, 0.94);
    color: var(--primary-dark);
    font-size: 1.2rem;
    line-height: 1;
    box-shadow: 0 10px 24px rgba(152, 118, 110, 0.12);
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.wishlist-toggle-btn:hover,
.wishlist-toggle-btn.is-active {
    transform: translateY(-1px);
    background: rgba(var(--primary-soft-rgb), 0.98);
    border-color: rgba(var(--primary-rgb), 0.76);
    color: var(--primary-dark);
}

.wishlist-toggle-btn:disabled {
    opacity: 0.7;
    cursor: wait;
}

.wishlist-count {
    font-size: 0.82rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.catalog-page {
    background:
        linear-gradient(180deg, rgba(var(--primary-soft-rgb), 0.22), rgba(255, 255, 255, 0) 19rem),
        var(--body-bg);
}

.catalog-hero,
.catalog-filter-shell,
.catalog-results-bar,
.catalog-empty {
    border: 1px solid rgba(var(--primary-rgb), 0.12);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 14px 34px rgba(41, 97, 49, 0.08);
}

.catalog-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.45rem 1.6rem;
}

.catalog-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 1.8rem;
    margin-bottom: 0.55rem;
    padding: 0.28rem 0.75rem;
    border-radius: 999px;
    background: rgba(var(--primary-soft-rgb), 0.9);
    color: var(--primary-dark);
    font-size: 0.82rem;
    font-weight: 900;
}

.catalog-hero h1 {
    margin: 0;
    color: var(--text-main);
    font-size: clamp(1.7rem, 2.6vw, 2.65rem);
    font-weight: 900;
    line-height: 1.08;
}

.catalog-hero p {
    max-width: 48rem;
    margin: 0.65rem 0 0;
    color: var(--text-muted);
}

.catalog-total-pill {
    flex: 0 0 auto;
    min-width: 10rem;
    display: inline-flex;
    flex-direction: column;
    gap: 0.18rem;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(var(--primary-rgb), 0.18);
    border-radius: 16px;
    background: rgba(var(--primary-soft-rgb), 0.72);
    color: var(--primary-dark);
}

.catalog-total-pill strong {
    font-size: 1.55rem;
    line-height: 1;
}

.catalog-total-pill span {
    font-size: 0.86rem;
    font-weight: 800;
}

.catalog-filter-shell {
    padding: 1rem;
}

.catalog-search-row {
    display: grid;
    grid-template-columns: minmax(16rem, 1fr) minmax(11rem, 15rem) auto auto;
    gap: 0.75rem;
    align-items: end;
}

.catalog-search-field,
.catalog-sort-field {
    display: grid;
    gap: 0.35rem;
    margin: 0;
    min-width: 0;
}

.catalog-search-field span,
.catalog-sort-field span {
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 800;
}

.catalog-search-field input,
.catalog-sort-field select {
    width: 100%;
    min-height: 2.95rem;
    border: 1px solid rgba(var(--primary-rgb), 0.14);
    border-radius: 12px;
    background: #fff;
    color: var(--text-main);
    font-weight: 700;
}

.catalog-search-field input {
    padding: 0 1rem;
}

.catalog-sort-field select {
    padding: 0 2rem 0 0.9rem;
}

.catalog-filter-submit,
.catalog-filter-clear {
    min-height: 2.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-left: 1.1rem;
    padding-right: 1.1rem;
    white-space: nowrap;
}

.catalog-filter-groups {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 0.9rem;
    padding-top: 0.9rem;
    border-top: 1px solid rgba(var(--primary-rgb), 0.1);
}

.catalog-filter-dropdown {
    position: relative;
}

.catalog-filter-dropdown summary {
    min-height: 2.65rem;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 0.85rem 0.55rem 1rem;
    border: 1px solid rgba(var(--primary-rgb), 0.14);
    border-radius: 999px;
    background: #fff;
    color: var(--text-main);
    cursor: pointer;
    font-weight: 800;
    list-style: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.catalog-filter-dropdown summary::after {
    content: "⌄";
    color: var(--primary-dark);
    font-size: 0.92rem;
    font-weight: 900;
}

.catalog-filter-dropdown[open] summary,
.catalog-filter-dropdown.is-active summary {
    border-color: rgba(var(--primary-rgb), 0.3);
    background: rgba(var(--primary-soft-rgb), 0.72);
    box-shadow: 0 8px 20px rgba(41, 97, 49, 0.08);
}

.catalog-filter-dropdown summary strong {
    min-width: 1.55rem;
    min-height: 1.55rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(var(--primary-rgb), 0.16);
    color: var(--primary-dark);
    font-size: 0.76rem;
}

.catalog-filter-menu {
    position: absolute;
    z-index: 30;
    top: calc(100% + 0.55rem);
    left: 0;
    width: min(30rem, calc(100vw - 2rem));
    max-height: 21rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
    overflow: auto;
    padding: 0.85rem;
    border: 1px solid rgba(var(--primary-rgb), 0.14);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 22px 46px rgba(24, 46, 27, 0.16);
}

.catalog-filter-menu-wide {
    width: min(42rem, calc(100vw - 2rem));
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.catalog-choice-chip {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 0.5rem;
    min-height: 2.55rem;
    margin: 0;
    padding: 0.48rem 0.65rem;
    border: 1px solid rgba(var(--primary-rgb), 0.12);
    border-radius: 12px;
    background: #fff;
    color: var(--text-main);
    cursor: pointer;
    font-size: 0.88rem;
    font-weight: 700;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.catalog-choice-chip:hover {
    transform: translateY(-1px);
    border-color: rgba(var(--primary-rgb), 0.24);
    background: rgba(var(--primary-soft-rgb), 0.58);
}

.catalog-choice-chip input {
    flex: 0 0 auto;
}

.catalog-choice-chip span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.catalog-choice-chip.is-child span::before {
    content: "• ";
    color: var(--primary-dark);
}

.catalog-choice-chip:has(input:checked) {
    border-color: rgba(var(--primary-rgb), 0.35);
    background: rgba(var(--primary-soft-rgb), 0.82);
    color: var(--primary-dark);
}

.catalog-active-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.9rem;
}

.catalog-active-filters > span {
    color: var(--text-muted);
    font-size: 0.84rem;
    font-weight: 800;
}

.catalog-active-filters a {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    max-width: 100%;
    min-height: 2rem;
    padding: 0.3rem 0.62rem 0.3rem 0.75rem;
    border-radius: 999px;
    background: rgba(var(--primary-soft-rgb), 0.78);
    color: var(--primary-dark);
    font-size: 0.82rem;
    font-weight: 800;
    text-decoration: none;
}

.catalog-active-filters b {
    font-size: 1rem;
    line-height: 1;
}

.catalog-results-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.95rem 1rem;
}

.catalog-results-bar h2 {
    margin: 0;
    color: var(--text-main);
    font-size: 1.05rem;
    font-weight: 900;
}

.catalog-results-bar p {
    margin: 0.2rem 0 0;
    color: var(--text-muted);
    font-size: 0.86rem;
}

.catalog-results-bar > span {
    flex: 0 0 auto;
    min-height: 2.25rem;
    display: inline-flex;
    align-items: center;
    padding: 0.42rem 0.8rem;
    border-radius: 999px;
    background: rgba(var(--primary-soft-rgb), 0.78);
    color: var(--primary-dark);
    font-size: 0.84rem;
    font-weight: 900;
}

.catalog-product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.8rem;
}

.catalog-product-grid .susu-product-card {
    border-radius: 14px;
    border-color: rgba(var(--primary-rgb), 0.11);
    box-shadow: 0 8px 20px rgba(37, 75, 43, 0.08);
}

.catalog-product-grid .susu-product-card:hover {
    transform: translateY(-2px);
    border-color: rgba(var(--primary-rgb), 0.24);
    box-shadow: 0 16px 30px rgba(37, 75, 43, 0.14);
}

.catalog-product-grid .product-card-media {
    margin: 0.55rem 0.55rem 0;
    border-radius: 12px;
    background: #f7fbf5;
}

.catalog-product-grid .susu-product-card img {
    padding: 0.55rem;
}

.catalog-product-grid .product-card-body {
    padding: 0.7rem 0.72rem 0.8rem;
}

.catalog-product-grid .product-card-title {
    min-height: 2.72rem;
    margin: 0.42rem 0 0.48rem;
    font-size: 0.88rem;
    line-height: 1.38;
}

.catalog-product-grid .product-card-brand-row {
    font-size: 0.66rem;
}

.catalog-product-grid .product-card-tags span {
    min-height: 1.45rem;
    padding: 0.22rem 0.45rem;
    font-size: 0.68rem;
}

.catalog-product-grid .product-card-origin,
.catalog-product-grid .product-card-social,
.catalog-product-grid .susu-product-card .wishlist-count {
    font-size: 0.7rem;
}

.catalog-product-grid .susu-product-card .price-main {
    font-size: 1rem;
}

.catalog-product-grid .product-buy-btn {
    min-height: 2.25rem;
    font-size: 0.78rem;
}

.catalog-promo-tile {
    position: relative;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    grid-column: span 2;
    border-radius: 14px;
    background: #eaf7e7;
    border: 1px solid rgba(var(--primary-rgb), 0.12);
    color: #fff;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(37, 75, 43, 0.1);
}

.catalog-promo-tile:hover {
    color: #fff;
}

.catalog-promo-tile img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.24s ease;
}

.catalog-promo-tile:hover img {
    transform: scale(1.03);
}

.catalog-promo-tile::after {
    content: "";
    position: absolute;
    inset: 35% 0 0;
    background: linear-gradient(180deg, transparent, rgba(12, 34, 16, 0.84));
}

.catalog-promo-tile span,
.catalog-promo-tile strong,
.catalog-promo-tile small {
    position: relative;
    z-index: 1;
    margin-left: 1rem;
    margin-right: 1rem;
}

.catalog-promo-tile span {
    width: fit-content;
    margin-bottom: 0.35rem;
    padding: 0.24rem 0.55rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
    font-size: 0.72rem;
    font-weight: 900;
}

.catalog-promo-tile strong {
    margin-bottom: 0.2rem;
    font-size: 1.2rem;
    line-height: 1.12;
}

.catalog-promo-tile small {
    margin-bottom: 1rem;
    opacity: 0.9;
}

.catalog-empty {
    padding: 2rem;
    color: var(--text-muted);
}

.product-list-layout {
    align-items: flex-start;
}

.product-filter-sidebar {
    position: sticky;
    top: 1.5rem;
}

.product-filter-groups {
    display: grid;
    gap: 0.95rem;
}

.product-filter-panel {
    overflow: hidden;
    border-radius: 26px;
    border: 1px solid rgba(var(--primary-rgb), 0.14);
    background: rgba(255, 255, 255, 0.68);
    transition: border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.product-filter-panel.is-active,
.product-filter-panel[open] {
    border-color: rgba(var(--primary-rgb), 0.24);
    background: rgba(255, 255, 255, 0.84);
    box-shadow: 0 18px 34px rgba(152, 118, 110, 0.08);
}

.product-filter-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.9rem;
    padding: 1rem 1.1rem;
    cursor: pointer;
    list-style: none;
}

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

.product-filter-summary::after {
    content: "+";
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    background: rgba(var(--primary-soft-rgb), 0.95);
    color: var(--primary-dark);
    font-size: 1.15rem;
    font-weight: 700;
    transition: transform 0.22s ease, background 0.22s ease;
}

.product-filter-panel[open] .product-filter-summary::after {
    content: "-";
    transform: rotate(180deg);
}

.product-filter-summary-copy {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.product-filter-summary-label {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
}

.product-filter-summary-note {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.84rem;
    line-height: 1.45;
}

.product-filter-summary-badge {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    background: rgba(var(--primary-rgb), 0.08);
    color: var(--primary-dark);
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
}

.product-filter-summary-badge.is-active {
    background: rgba(var(--primary-rgb), 0.18);
}

.product-filter-panel-body {
    padding: 0 1.1rem 1.1rem;
}

.product-filter-group {
    margin-top: 0.15rem;
}

.product-category-menu {
    display: grid;
    gap: 0.85rem;
}

.product-category-node {
    border-radius: 22px;
    border: 1px solid rgba(var(--primary-rgb), 0.12);
    background: rgba(255, 255, 255, 0.68);
    transition: border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.product-category-node.is-open,
.product-category-node.is-selected {
    border-color: rgba(var(--primary-rgb), 0.24);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 12px 24px rgba(152, 118, 110, 0.08);
}

.product-category-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.95rem 1rem;
    border: 0;
    background: transparent;
    color: var(--text-main);
    font: inherit;
    text-align: left;
}

.product-category-trigger::after {
    content: "›";
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    background: rgba(var(--primary-soft-rgb), 0.95);
    color: var(--primary-dark);
    font-size: 1.35rem;
    line-height: 1;
    transition: transform 0.22s ease, background 0.22s ease;
}

.product-category-node.is-open .product-category-trigger::after {
    transform: rotate(90deg);
}

.product-category-trigger-label {
    font-size: 1rem;
    font-weight: 700;
}

.product-category-submenu {
    display: grid;
    gap: 0.65rem;
    padding: 0 1rem 1rem;
}

.product-category-option {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.8rem 0.9rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(var(--primary-rgb), 0.12);
    color: var(--text-main);
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.product-category-option:hover {
    transform: translateY(-1px);
    border-color: rgba(var(--primary-rgb), 0.2);
    background: rgba(var(--primary-soft-rgb), 0.92);
}

.product-category-option .form-check-input {
    margin-top: 0.2rem;
    flex: 0 0 auto;
}

.product-category-option span {
    line-height: 1.45;
}

.product-category-option-parent {
    font-weight: 700;
}

.product-category-option-child {
    margin-left: 0.9rem;
}

.product-category-option-child span::before {
    content: "—";
    margin-right: 0.45rem;
    color: var(--text-muted);
}

.product-category-option-direct {
    width: 100%;
}

.product-filter-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: none;
    overflow: visible;
    padding-right: 0;
}

.product-filter-option {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.8rem 0.9rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(var(--primary-rgb), 0.12);
    color: var(--text-main);
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.product-filter-option:hover {
    transform: translateY(-1px);
    border-color: rgba(var(--primary-rgb), 0.22);
    background: rgba(var(--primary-soft-rgb), 0.9);
    box-shadow: 0 14px 28px rgba(152, 118, 110, 0.08);
}

.product-filter-option .form-check-input {
    margin-top: 0.2rem;
    flex: 0 0 auto;
}

.product-filter-option span {
    line-height: 1.45;
}

.product-filter-actions {
    display: grid;
    gap: 0.85rem;
    margin-top: 1.75rem;
}

.product-results-pill {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
    padding: 1rem 1.15rem;
    min-width: 11rem;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.12), rgba(127, 200, 215, 0.14));
    border: 1px solid rgba(var(--primary-rgb), 0.16);
    color: var(--primary-dark);
}

.product-results-pill strong {
    font-size: 1.65rem;
    line-height: 1;
}

.product-results-pill span {
    font-size: 0.92rem;
}

.product-results-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.product-results-note {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    padding: 0.7rem 1rem;
    border-radius: 999px;
    background: rgba(var(--primary-soft-rgb), 0.94);
    color: var(--primary-dark);
    font-size: 0.92rem;
    font-weight: 700;
    white-space: nowrap;
}

.product-pagination-card {
    overflow: visible;
}

.product-pagination-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.product-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.6rem;
}

.product-pagination-link,
.product-pagination-ellipsis {
    min-width: 2.75rem;
    min-height: 2.75rem;
    padding: 0.65rem 0.95rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(var(--primary-rgb), 0.14);
    background: rgba(255, 255, 255, 0.86);
    color: var(--text-main);
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.product-pagination-link:hover {
    transform: translateY(-1px);
    border-color: rgba(var(--primary-rgb), 0.24);
    background: rgba(var(--primary-soft-rgb), 0.94);
    box-shadow: 0 12px 24px rgba(152, 118, 110, 0.08);
}

.product-pagination-link.is-active {
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.96), rgba(127, 200, 215, 0.86));
    border-color: transparent;
    color: #fff;
    box-shadow: 0 14px 30px rgba(var(--primary-rgb), 0.18);
}

.product-pagination-link.is-disabled {
    opacity: 0.48;
    pointer-events: none;
    box-shadow: none;
}

.product-pagination-ellipsis {
    background: transparent;
    border-style: dashed;
}

.product-share-card .small,
.product-favorite-btn .small {
    color: var(--text-muted);
}

@media (max-width: 991.98px) {
    .product-filter-sidebar {
        position: static;
        top: auto;
    }

    .product-filter-summary {
        padding: 0.95rem 1rem;
    }

    .product-filter-panel-body {
        padding: 0 1rem 1rem;
    }

    .product-filter-list {
        max-height: none;
        overflow: visible;
    }

    .product-results-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .product-pagination-wrap,
    .product-pagination {
        justify-content: flex-start;
    }
}

.rich-content {
    color: var(--text-main);
    line-height: 1.8;
}

.rich-content > :last-child {
    margin-bottom: 0;
}

.rich-content h2,
.rich-content h3,
.rich-content h4 {
    margin-top: 1.5rem;
    margin-bottom: 0.9rem;
    font-weight: 800;
    color: var(--text-main);
}

.rich-content p,
.rich-content ul,
.rich-content ol,
.rich-content table,
.rich-content blockquote,
.rich-content figure {
    margin-bottom: 1rem;
}

.rich-content ul,
.rich-content ol {
    padding-left: 1.3rem;
}

.rich-content img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    display: block;
    margin: 1rem auto;
    box-shadow: 0 12px 30px rgba(152, 118, 110, 0.12);
}

.rich-content table {
    width: 100%;
    overflow: hidden;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid rgba(127, 200, 215, 0.18);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
}

.rich-content th,
.rich-content td {
    padding: 0.9rem 1rem;
    border-bottom: 1px solid rgba(127, 200, 215, 0.14);
    border-right: 1px solid rgba(127, 200, 215, 0.14);
    vertical-align: top;
}

.rich-content th:last-child,
.rich-content td:last-child {
    border-right: 0;
}

.rich-content tr:last-child th,
.rich-content tr:last-child td {
    border-bottom: 0;
}

.rich-content th {
    background: rgba(213, 240, 247, 0.55);
    font-weight: 700;
}

.rich-content blockquote {
    padding: 1rem 1.2rem;
    border-left: 4px solid rgba(var(--primary-rgb), 0.72);
    background: rgba(var(--primary-soft-rgb), 0.88);
    border-radius: 0 18px 18px 0;
    color: var(--text-muted);
}

.rich-content a {
    color: var(--primary-dark);
    font-weight: 600;
}

.support-page .section-subtitle {
    max-width: 760px;
}

.support-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.support-hero-list {
    display: grid;
    gap: 0.85rem;
}

.support-hero-list div,
.support-info-card,
.support-contact-mini a {
    border: 1px solid rgba(127, 200, 215, 0.18);
    background: rgba(255, 255, 255, 0.72);
}

.support-hero-list div {
    padding: 0.95rem 1rem;
    border-left: 4px solid rgba(var(--primary-rgb), 0.72);
    border-radius: 20px;
}

.support-hero-list span,
.support-info-card span,
.support-contact-mini span {
    display: block;
    color: var(--text-muted);
    font-size: 0.84rem;
    font-weight: 700;
    text-transform: uppercase;
}

.support-hero-list strong,
.support-info-card strong,
.support-contact-mini strong {
    display: block;
    margin-top: 0.25rem;
    color: var(--text-main);
    line-height: 1.45;
}

.support-info-card {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    padding: 1.15rem;
    border-radius: 24px;
    box-shadow: 0 12px 28px rgba(152, 118, 110, 0.08);
}

.support-info-card p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.92rem;
}

.support-info-card a {
    margin-top: auto;
    font-weight: 700;
}

.support-step-list {
    display: grid;
    gap: 1rem;
}

.support-step-list div {
    display: grid;
    grid-template-columns: 2.35rem 1fr;
    gap: 0.85rem;
    align-items: start;
}

.support-step-list span {
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--primary-rgb), 0.16);
    color: var(--primary-dark);
    font-weight: 800;
}

.support-step-list p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.7;
}

.support-link-list {
    display: grid;
    gap: 0.1rem;
}

.support-link-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.82rem 0;
    border-bottom: 1px solid rgba(127, 200, 215, 0.14);
    color: var(--text-main);
    font-weight: 700;
}

.support-link-list a:last-child {
    border-bottom: 0;
}

.support-link-list a:hover {
    color: var(--primary-dark);
}

.policy-content section + section {
    margin-top: 2rem;
    padding-top: 1.1rem;
    border-top: 1px solid rgba(127, 200, 215, 0.14);
}

.support-sidebar {
    position: sticky;
    top: 150px;
}

.support-contact-mini {
    display: grid;
    gap: 0.75rem;
}

.support-contact-mini a {
    padding: 0.95rem 1rem;
    border-radius: 18px;
}

@media (max-width: 991.98px) {
    .support-sidebar {
        position: static;
    }
}

@media (max-width: 575.98px) {
    .support-actions .btn,
    .support-actions .storefront-link {
        width: 100%;
        justify-content: center;
    }

    .support-step-list div {
        grid-template-columns: 2rem 1fr;
    }

    .support-step-list span {
        width: 2rem;
        height: 2rem;
    }
}

.local-editor {
    border: 1px solid rgba(127, 200, 215, 0.2);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 14px 34px rgba(152, 118, 110, 0.08);
    overflow: hidden;
}

.local-editor:focus-within {
    border-color: rgba(var(--primary-rgb), 0.48);
    box-shadow: 0 18px 38px rgba(var(--primary-rgb), 0.14);
}

.local-editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    padding: 0.9rem;
    border-bottom: 1px solid rgba(127, 200, 215, 0.16);
    background: linear-gradient(180deg, rgba(var(--primary-soft-rgb), 0.98), rgba(255, 255, 255, 0.98));
}

.local-editor-btn,
.local-editor-select {
    height: 2.6rem;
    border-radius: 14px;
    border: 1px solid rgba(127, 200, 215, 0.18);
    background: rgba(255, 255, 255, 0.95);
    color: var(--text-main);
    font-size: 0.95rem;
    font-weight: 600;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.local-editor-btn {
    min-width: 2.75rem;
    padding: 0 0.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 18px rgba(152, 118, 110, 0.06);
}

.local-editor-btn:hover,
.local-editor-btn.is-active,
.local-editor-select:hover,
.local-editor-select:focus {
    border-color: rgba(var(--primary-rgb), 0.38);
    background: rgba(var(--primary-soft-rgb), 0.96);
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(var(--primary-rgb), 0.12);
}

.local-editor-btn:focus-visible,
.local-editor-select:focus-visible {
    outline: 0;
    border-color: rgba(var(--primary-rgb), 0.48);
    box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.15);
}

.local-editor-select {
    min-width: 10.5rem;
    padding: 0 0.9rem;
}

.local-editor-surface,
.local-editor-source {
    min-height: 320px;
    padding: 1.15rem 1.2rem 1.35rem;
    border: 0;
    background: rgba(255, 255, 255, 0.98);
}

.local-editor-surface {
    outline: 0;
}

.local-editor-surface[hidden],
.local-editor-source[hidden] {
    display: none !important;
}

.local-editor-source {
    border-radius: 0;
    resize: vertical;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 0.95rem;
    line-height: 1.7;
    box-shadow: none;
}

.local-editor .rich-content img {
    margin-top: 1.2rem;
    margin-bottom: 1.2rem;
}

.local-editor .rich-content table {
    margin-top: 1rem;
}

@media (max-width: 767.98px) {
    .local-editor-toolbar {
        gap: 0.45rem;
        padding: 0.75rem;
    }

    .local-editor-btn {
        min-width: 2.5rem;
        padding: 0 0.7rem;
        font-size: 0.88rem;
    }

    .local-editor-select {
        min-width: 8.5rem;
        font-size: 0.88rem;
    }

    .local-editor-surface,
    .local-editor-source {
        min-height: 260px;
        padding: 1rem;
    }
}

.report-summary-card,
.report-print-card {
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(127, 200, 215, 0.15);
    border-radius: 26px;
    padding: 1.35rem;
    box-shadow: 0 12px 30px rgba(152, 118, 110, 0.08);
}

.report-summary-number {
    font-size: clamp(1.4rem, 2vw, 2rem);
    font-weight: 800;
    color: var(--text-main);
}

.report-trend-row {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) 140px;
    gap: 0.9rem;
    align-items: center;
}

.report-trend-label,
.report-trend-value {
    font-size: 0.92rem;
    color: var(--text-main);
    font-weight: 600;
}

.report-trend-bar {
    position: relative;
    height: 0.75rem;
    border-radius: 999px;
    background: rgba(127, 200, 215, 0.12);
    overflow: hidden;
}

.report-trend-bar span {
    position: absolute;
    inset: 0 auto 0 0;
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(var(--primary-rgb), 0.92), rgba(127, 200, 215, 0.92));
}

.report-inline-item {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.95rem 1rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(127, 200, 215, 0.12);
}

.report-hero {
    overflow: hidden;
}

.report-page-intro {
    max-width: 760px;
}

.report-page-lead,
.report-card-subtitle,
.report-summary-note {
    color: var(--text-muted);
    line-height: 1.7;
}

.report-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.report-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.report-hero-meta span,
.report-count-pill {
    display: inline-flex;
    align-items: center;
    min-height: 2.1rem;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary-dark);
    font-size: 0.86rem;
    font-weight: 800;
}

.report-filter-card {
    border-color: rgba(var(--primary-rgb), 0.12);
}

.report-summary-label {
    margin-bottom: 0.55rem;
    color: var(--text-muted);
    font-size: 0.86rem;
    font-weight: 800;
}

.report-data-card {
    min-height: 100%;
}

.report-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.report-trend-list {
    display: flex;
    flex-direction: column;
    gap: 0.95rem;
}

.report-trend-label {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.report-trend-label small {
    color: var(--text-muted);
    font-size: 0.76rem;
    font-weight: 700;
}

.report-empty-state {
    padding: 1rem;
    border: 1px dashed rgba(127, 200, 215, 0.28);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.58);
    color: var(--text-muted);
    line-height: 1.7;
}

.report-rank-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.report-rank-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(127, 200, 215, 0.12);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.72);
}

.report-rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    background: rgba(var(--primary-rgb), 0.12);
    color: var(--primary-dark);
    font-size: 0.82rem;
    font-weight: 900;
}

.report-rank-content {
    min-width: 0;
}

.report-product-name {
    min-width: 0;
    color: var(--text-main);
    font-weight: 800;
    line-height: 1.45;
}

.dashboard-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.dashboard-kpi-card {
    min-height: 9.25rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.65rem;
    padding: 1.15rem;
    border-color: rgba(79, 155, 87, 0.14);
}

.dashboard-kpi-label {
    color: var(--text-muted);
    font-size: 0.86rem;
    font-weight: 800;
}

.dashboard-kpi-number {
    color: var(--text-main);
    font-size: clamp(1.35rem, 2vw, 1.9rem);
    font-weight: 900;
    line-height: 1.12;
}

.dashboard-kpi-card.is-negative .dashboard-kpi-number {
    color: #c75353;
}

.dashboard-kpi-note {
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.45;
}

.dashboard-kpi-note span {
    display: inline-block;
}

.dashboard-chart-card {
    padding: 1.25rem;
}

.dashboard-chart-canvas {
    position: relative;
    min-height: 320px;
}

.dashboard-chart-canvas-sm {
    min-height: 260px;
}

.report-print-shell {
    max-width: 1080px;
    margin: 0 auto;
    padding: 2rem;
}

.report-print-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.print-body {
    background: #fff;
    margin: 0;
    color: #2d2523;
}

.print-brand-block {
    text-align: right;
}

.print-brand-name {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-main);
}

.print-summary-grid,
.print-meta-grid {
    display: grid;
    gap: 1rem;
}

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

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

.print-two-column {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.95fr);
    gap: 1rem;
}

.print-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.print-section-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.38rem 0.78rem;
    border-radius: 999px;
    background: rgba(127, 200, 215, 0.12);
    color: var(--primary-dark);
    font-size: 0.82rem;
    font-weight: 700;
}

.print-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.print-table thead th {
    padding: 0.8rem 0.9rem;
    border-bottom: 1px solid rgba(66, 52, 51, 0.18);
    background: rgba(213, 240, 247, 0.3);
    color: var(--text-main);
    font-weight: 700;
    text-align: left;
}

.print-table tbody td {
    padding: 0.78rem 0.9rem;
    border-bottom: 1px solid rgba(66, 52, 51, 0.1);
    vertical-align: top;
}

.print-empty-cell {
    padding: 1.1rem 0.9rem;
    color: var(--text-muted);
    text-align: center;
}

.print-info-block {
    padding: 0.95rem 1rem;
    border-radius: 20px;
    background: rgba(250, 248, 247, 0.92);
    border: 1px solid rgba(127, 200, 215, 0.12);
}

.print-total-panel {
    width: min(100%, 360px);
    margin-left: auto;
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.report-inline-item-total {
    background: rgba(var(--primary-soft-rgb), 0.72);
    border-color: rgba(var(--primary-rgb), 0.24);
}

.report-inline-item-total strong {
    color: var(--primary-dark);
}

.print-list-stack {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.page-break-avoid {
    break-inside: avoid-page;
    page-break-inside: avoid;
}

@media print {
    @page {
        size: A4;
        margin: 10mm 12mm;
    }

    html,
    body {
        width: auto;
        height: auto;
    }

    .print-body {
        background: #fff;
        margin: 0;
    }

    .report-print-shell {
        max-width: none;
        margin: 0;
        padding: 0;
    }

    .report-print-header {
        margin-bottom: 1rem;
        padding-bottom: 0.9rem;
        border-bottom: 2px solid rgba(66, 52, 51, 0.12);
    }

    .report-summary-card,
    .report-print-card {
        box-shadow: none;
        border-color: rgba(66, 52, 51, 0.14);
    }

    .report-print-card {
        border-radius: 18px;
    }

    .chip {
        box-shadow: none;
    }
}

@media (max-width: 991.98px) {
    .print-summary-grid,
    .print-meta-grid,
    .print-two-column {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .report-card-head,
    .report-print-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .report-action-row,
    .report-action-row .btn {
        width: 100%;
    }

    .report-trend-row {
        grid-template-columns: 54px minmax(0, 1fr);
        gap: 0.7rem;
    }

    .report-trend-value {
        grid-column: 2;
        text-align: right;
    }

    .print-brand-block {
        text-align: left;
    }
}

.promotion-page-intro {
    max-width: 760px;
}

.promotion-count-chip {
    padding: 0.48rem 0.95rem;
    border-radius: 999px;
    background: rgba(var(--primary-rgb), 0.12);
    color: var(--primary-dark);
    font-size: 0.9rem;
    font-weight: 700;
}

.promotion-list-card,
.promotion-meta-card,
.promotion-content-card,
.promotion-highlight-card,
.promotion-rule-card {
    border: 1px solid rgba(127, 200, 215, 0.14);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 16px 34px rgba(152, 118, 110, 0.08);
}

.promotion-list-card {
    display: block;
    padding: 1.25rem;
    border-radius: 28px;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.promotion-list-card:hover {
    transform: translateY(-2px);
    border-color: rgba(var(--primary-rgb), 0.26);
    box-shadow: 0 18px 38px rgba(var(--primary-rgb), 0.12);
}

.promotion-list-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.promotion-arrow {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 999px;
    color: var(--primary-dark);
    background: rgba(var(--primary-soft-rgb), 0.95);
    font-size: 1.15rem;
    font-weight: 700;
}

.promotion-list-card-copy,
.promotion-copy {
    color: var(--text-muted);
    line-height: 1.78;
}

.promotion-meta-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.promotion-meta-card,
.promotion-content-card,
.promotion-highlight-card {
    border-radius: 30px;
    padding: 1.4rem;
}

.promotion-highlight-card {
    background:
        radial-gradient(circle at top right, rgba(127, 200, 215, 0.14), transparent 42%),
        rgba(255, 255, 255, 0.92);
}

.promotion-code-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    padding: 0.7rem 1rem;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.96), rgba(127, 200, 215, 0.92));
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
}

.promotion-rule-card {
    padding: 1.15rem 1.2rem;
    border-radius: 24px;
}

.promotion-rule-card-link {
    display: block;
    color: inherit;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.promotion-rule-card-link:hover {
    transform: translateY(-2px);
    border-color: rgba(var(--primary-rgb), 0.26);
    box-shadow: 0 18px 38px rgba(var(--primary-rgb), 0.12);
}

.promotion-rule-value {
    color: var(--primary-dark);
    font-size: 1.1rem;
    font-weight: 800;
}

.promotion-tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.promotion-tag {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    padding: 0.65rem 1rem;
    border-radius: 999px;
    background: rgba(var(--primary-soft-rgb), 0.96);
    border: 1px solid rgba(var(--primary-rgb), 0.18);
    color: var(--text-main);
    text-decoration: none;
    font-weight: 700;
    transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.promotion-tag:hover {
    transform: translateY(-1px);
    border-color: rgba(var(--primary-rgb), 0.3);
    background: rgba(var(--primary-rgb), 0.12);
}

@media (max-width: 991.98px) {
    .promotion-meta-grid {
        grid-template-columns: 1fr;
    }
}

.cart-summary-card {
    flex: 0 0 400px;
    min-width: 380px;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-self: flex-start;
    margin-top: 3.55rem;
}

.cart-note-stack {
    flex: 1 1 620px;
    max-width: 700px;
}

.cart-promo-box {
    padding: 1rem;
    border-radius: 24px;
    background: rgba(var(--primary-soft-rgb), 0.82);
    border: 1px solid rgba(var(--primary-rgb), 0.12);
}

.cart-promo-box .form-control {
    min-width: 220px;
}

.cart-promo-state {
    padding: 0.8rem 0.95rem;
    border-radius: 18px;
    background: rgba(var(--primary-rgb), 0.12);
    color: var(--primary-dark);
    font-size: 0.95rem;
}

.cart-promo-state-success {
    background: rgba(156, 207, 123, 0.14);
    color: #2d6a31;
}

.cart-promo-state-error {
    background: rgba(185, 78, 75, 0.14);
    color: #b94e4b;
}

.cart-promo-suggestions .btn {
    white-space: nowrap;
}

.cart-summary-card .btn-primary {
    margin-top: 1.5rem;
}

@media (max-width: 991.98px) {
    .cart-summary-card {
        flex: 1 1 auto;
        min-width: 100%;
        max-width: 100%;
        margin-top: 0;
    }
}

/* Form validation enhancements */
.field-hint {
    margin-top: 0.45rem;
    font-size: 0.86rem;
    color: var(--text-muted);
}

.field-error {
    margin-top: 0.45rem;
    font-size: 0.86rem;
    font-weight: 600;
}

.form-control.is-invalid,
.form-select.is-invalid,
.form-check-input.is-invalid {
    border-color: #d97a77;
    background-image: none;
    box-shadow: 0 0 0 0.18rem rgba(217, 122, 119, 0.14);
}

.form-control.is-invalid:focus,
.form-select.is-invalid:focus,
.form-check-input.is-invalid:focus {
    border-color: #d97a77;
    box-shadow: 0 0 0 0.22rem rgba(217, 122, 119, 0.18);
}

/* Modern mother & baby storefront */
:root {
    --bg-cream: #f4f9ff;
    --bg-soft: #eaf6ff;
    --bg-accent: #fff8df;
    --line: #d8e9f8;
    --text-main: #18324a;
    --text-muted: #64768a;
    --primary: #1f9cf0;
    --primary-dark: #1769aa;
    --primary-rgb: 31, 156, 240;
    --primary-light: #5fc3ff;
    --primary-soft-rgb: 230, 246, 255;
    --primary-glow-rgb: 198, 235, 255;
    --secondary: #ffd34d;
    --card: rgba(255, 255, 255, 0.96);
    --shadow: 0 14px 34px rgba(23, 105, 170, 0.12);
    --radius-xl: 24px;
}

.frontend-body {
    background:
        linear-gradient(180deg, rgba(232, 247, 255, 0.95) 0%, rgba(255, 255, 255, 0.7) 22%, #f7fbff 100%);
}

.btn-primary {
    background: linear-gradient(135deg, #1687df, #18b7f4);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 12px 26px rgba(31, 156, 240, 0.26);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #106fb8, #149bd8);
    color: #fff;
}

.btn-soft {
    border-color: rgba(31, 156, 240, 0.18);
    background: #fff;
    color: var(--text-main);
    box-shadow: 0 8px 20px rgba(23, 105, 170, 0.06);
}

.chip {
    background: #fff4c2;
    color: #926d00;
    border: 1px solid rgba(255, 211, 77, 0.5);
}

.storefront-header {
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(31, 156, 240, 0.14);
    box-shadow: 0 10px 30px rgba(23, 105, 170, 0.07);
}

.storefront-header-main {
    padding: 0.75rem 0;
}

.storefront-header-inner {
    display: grid;
    grid-template-columns: auto minmax(280px, 1fr) auto;
    gap: 1rem;
    align-items: center;
}

.storefront-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-main);
    min-width: 190px;
}

.storefront-logo:hover {
    color: var(--text-main);
}

.storefront-logo-mark {
    width: 3rem;
    height: 3rem;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ffd84f, #fff2ad);
    color: #1769aa;
    font-weight: 900;
    box-shadow: 0 10px 24px rgba(255, 211, 77, 0.28);
}

.storefront-logo strong,
.storefront-logo small {
    display: block;
    line-height: 1.15;
}

.storefront-logo strong {
    font-size: 1.12rem;
    font-weight: 800;
}

.storefront-logo small {
    margin-top: 0.12rem;
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 600;
}

.storefront-search {
    position: relative;
    min-height: 3.35rem;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.65rem;
    padding: 0.35rem 0.45rem 0.35rem 1rem;
    border: 2px solid rgba(31, 156, 240, 0.18);
    border-radius: 999px;
    background: #fff;
    box-shadow: inset 0 0 0 1px rgba(255, 211, 77, 0.2), 0 10px 24px rgba(23, 105, 170, 0.07);
}

.storefront-search span {
    color: var(--primary-dark);
    font-size: 1.25rem;
}

.storefront-search input {
    width: 100%;
    border: 0;
    outline: 0;
    color: var(--text-main);
    background: transparent;
    font-weight: 600;
}

.storefront-search input::placeholder {
    color: #8aa0b5;
    font-weight: 500;
}

.storefront-search button {
    min-height: 2.55rem;
    padding: 0 1.2rem;
    border: 0;
    border-radius: 999px;
    background: #ffd34d;
    color: #143554;
    font-weight: 800;
}

.storefront-search.is-loading {
    opacity: 0.78;
}

.storefront-search.is-loading button,
.product-buy-btn.is-loading {
    cursor: wait;
}

.search-suggestions {
    position: absolute;
    top: calc(100% + 0.7rem);
    left: 0;
    right: 0;
    z-index: 1050;
    display: grid;
    gap: 0.45rem;
    max-height: min(28rem, calc(100vh - 9rem));
    overflow-y: auto;
    padding: 0.75rem;
    border: 1px solid rgba(79, 155, 87, 0.16);
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 24px 60px rgba(31, 78, 47, 0.18);
}

.search-suggestions[hidden] {
    display: none;
}

.search-suggestion-item {
    display: grid;
    grid-template-columns: 4rem minmax(0, 1fr);
    gap: 0.8rem;
    align-items: center;
    padding: 0.55rem;
    border-radius: 1rem;
    color: var(--text-main);
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.search-suggestion-item:hover {
    background: #eefbe8;
    color: var(--text-main);
    transform: translateY(-1px);
}

.search-suggestion-item img {
    width: 4rem;
    height: 4rem;
    border-radius: 0.9rem;
    object-fit: contain;
    background: #f6fbf2;
    border: 1px solid rgba(79, 155, 87, 0.12);
}

.search-suggestion-body {
    min-width: 0;
    display: grid;
    gap: 0.15rem;
}

.search-suggestion-body strong,
.search-suggestion-body small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.search-suggestion-body strong {
    font-size: 0.95rem;
    font-weight: 800;
}

.search-suggestion-body small {
    color: var(--text-muted);
    font-weight: 600;
}

.search-suggestion-body b {
    color: #4f9b57;
    font-weight: 900;
}

.search-suggestion-empty {
    padding: 0.9rem 1rem;
    color: var(--text-muted);
    font-weight: 700;
    text-align: center;
}

.search-suggestion-all {
    display: flex;
    justify-content: center;
    padding: 0.75rem 1rem;
    border-radius: 999px;
    background: #e7f8df;
    color: #3f8848;
    font-weight: 900;
    text-decoration: none;
}

.search-suggestion-all:hover {
    color: #2f7138;
    background: #d9f4cf;
}

.storefront-header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.55rem;
}

.header-action-pill,
.header-cart-pill {
    min-height: 2.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.65rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(31, 156, 240, 0.16);
    background: #fff;
    color: var(--text-main);
    font-size: 0.9rem;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 8px 20px rgba(23, 105, 170, 0.06);
}

.header-location {
    max-width: 220px;
}

.header-location span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
}

.header-cart-pill {
    position: relative;
    background: linear-gradient(135deg, #1687df, #20b9f5);
    color: #fff;
}

.header-cart-pill strong {
    min-width: 1.55rem;
    height: 1.55rem;
    padding: 0 0.35rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #ffd34d;
    color: #143554;
    font-size: 0.78rem;
}

.storefront-menu-toggle {
    display: none;
    width: 2.85rem;
    height: 2.85rem;
    border-radius: 999px;
    border: 1px solid rgba(31, 156, 240, 0.16);
    background-color: #fff;
}

.storefront-menu-toggle .navbar-toggler-icon {
    width: 1.25rem;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    background-image: none;
    box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor;
}

.storefront-category-nav {
    border-top: 1px solid rgba(31, 156, 240, 0.08);
    background: rgba(234, 246, 255, 0.76);
}

.storefront-nav-collapse {
    display: block;
}

.storefront-category-nav .collapse:not(.show) {
    display: block;
}

.storefront-category-scroll {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 3.15rem;
    overflow-x: auto;
    scrollbar-width: none;
}

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

.storefront-category-link {
    min-height: 2.35rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 0.95rem;
    border-radius: 999px;
    color: var(--text-main);
    font-size: 0.93rem;
    font-weight: 800;
    white-space: nowrap;
    transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.storefront-category-link:hover,
.storefront-category-link-highlight {
    background: #fff;
    color: var(--primary-dark);
    transform: translateY(-1px);
}

.storefront-logout-form {
    margin: 0;
}

.storefront-category-button {
    border: 0;
    background: transparent;
}

.storefront-hero-section,
.storefront-section {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.storefront-hero {
    min-height: 390px;
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
    gap: 1.5rem;
    align-items: stretch;
    overflow: hidden;
    border-radius: 32px;
    background:
        linear-gradient(135deg, rgba(30, 153, 239, 0.96), rgba(91, 202, 255, 0.92) 58%, rgba(255, 211, 77, 0.92));
    box-shadow: 0 24px 54px rgba(23, 105, 170, 0.18);
}

.storefront-hero-copy {
    padding: clamp(2rem, 5vw, 4.4rem);
    color: #fff;
}

.storefront-hero-copy .chip {
    background: rgba(255, 255, 255, 0.24);
    border-color: rgba(255, 255, 255, 0.34);
    color: #fff;
}

.storefront-hero-copy h1 {
    max-width: 12ch;
    margin-bottom: 1rem;
    font-size: clamp(2.25rem, 5vw, 4.5rem);
    line-height: 1.02;
    font-weight: 900;
}

.storefront-hero-copy p {
    max-width: 620px;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.05rem;
    line-height: 1.7;
}

.storefront-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.storefront-hero-visual {
    position: relative;
    min-height: 320px;
}

.milk-display {
    position: absolute;
    inset: 0;
}

.milk-can {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 32px 32px 24px 24px;
    background: linear-gradient(180deg, #ffffff 0%, #eaf7ff 54%, #d8f0ff 100%);
    color: var(--primary-dark);
    box-shadow: 0 24px 50px rgba(18, 74, 125, 0.2);
}

.milk-can::before {
    content: "";
    position: absolute;
    top: -1rem;
    width: 72%;
    height: 2rem;
    border-radius: 999px;
    background: #fff;
    border: 6px solid #d6efff;
}

.milk-can span {
    font-weight: 800;
    color: #19a1eb;
}

.milk-can strong {
    font-size: 2rem;
    line-height: 1;
}

.milk-can small {
    margin-top: 0.4rem;
    color: var(--text-muted);
    font-weight: 800;
}

.milk-can-main {
    right: 20%;
    bottom: 2rem;
    width: 210px;
    height: 270px;
}

.milk-can-side {
    right: 58%;
    bottom: 2.2rem;
    width: 120px;
    height: 190px;
    transform: rotate(-8deg);
}

.milk-can-side strong {
    font-size: 1.3rem;
}

.hero-saving-badge {
    position: absolute;
    right: 8%;
    top: 18%;
    padding: 0.85rem 1rem;
    border-radius: 22px;
    background: #fff;
    color: #d46d00;
    font-weight: 900;
    box-shadow: 0 16px 34px rgba(18, 74, 125, 0.18);
}

.storefront-promo-banners {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.promo-banner {
    min-height: 132px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 0.3rem;
    padding: 1.25rem;
    border-radius: 24px;
    color: var(--text-main);
    box-shadow: var(--shadow);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.promo-banner:hover {
    color: var(--text-main);
    transform: translateY(-3px);
    box-shadow: 0 20px 42px rgba(23, 105, 170, 0.16);
}

.promo-banner span {
    color: var(--primary-dark);
    font-weight: 800;
}

.promo-banner strong {
    font-size: 1.2rem;
    line-height: 1.2;
}

.promo-banner-blue {
    background: linear-gradient(135deg, #e8f6ff, #cdeeff);
}

.promo-banner-yellow {
    background: linear-gradient(135deg, #fff7d0, #ffe27b);
}

.promo-banner-white {
    background: #fff;
}

.storefront-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.2rem;
}

.storefront-link {
    display: inline-flex;
    align-items: center;
    min-height: 2.6rem;
    padding: 0.6rem 1rem;
    border-radius: 999px;
    background: #fff;
    color: var(--primary-dark);
    font-weight: 800;
    box-shadow: 0 8px 22px rgba(23, 105, 170, 0.08);
}

.home-brand-section {
    padding-top: 0.7rem;
}

.home-brand-head {
    margin-bottom: 0.9rem;
}

.home-brand-strip {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 0.7rem;
    padding: 0.2rem 0 0.1rem;
}

.home-brand-tile {
    min-height: 5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 0.9rem;
    border: 1px solid rgba(79, 155, 87, 0.14);
    border-radius: 12px;
    background: #fff;
    color: var(--text-main);
    box-shadow: 0 8px 20px rgba(23, 105, 170, 0.06);
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.home-brand-tile:hover {
    color: var(--primary-dark);
    border-color: rgba(79, 155, 87, 0.34);
    box-shadow: 0 14px 28px rgba(79, 155, 87, 0.14);
    transform: translateY(-2px);
}

.home-brand-tile img {
    max-width: 100%;
    max-height: 3.1rem;
    display: block;
    object-fit: contain;
}

.home-brand-tile span {
    max-width: 100%;
    color: inherit;
    font-size: 0.9rem;
    font-weight: 900;
    line-height: 1.2;
    text-align: center;
    overflow-wrap: anywhere;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1rem;
}

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

.susu-product-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(31, 156, 240, 0.12);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(23, 105, 170, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.susu-product-card:hover {
    transform: translateY(-5px);
    border-color: rgba(31, 156, 240, 0.28);
    box-shadow: 0 22px 44px rgba(23, 105, 170, 0.15);
}

.product-card-media {
    position: relative;
    margin: 0.75rem 0.75rem 0;
    overflow: hidden;
    border-radius: 20px;
    background: linear-gradient(180deg, #f3faff, #fff);
}

.product-card-image-link {
    display: block;
}

.susu-product-card img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    object-fit: contain;
    padding: 0.8rem;
    transition: transform 0.22s ease;
}

.susu-product-card:hover img {
    transform: scale(1.035);
}

.product-discount-badge {
    position: absolute;
    left: 0.7rem;
    top: 0.7rem;
    min-height: 2rem;
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.62rem;
    border-radius: 999px;
    background: #ffda4d;
    color: #9d3f00;
    font-size: 0.82rem;
    font-weight: 900;
    box-shadow: 0 10px 20px rgba(255, 211, 77, 0.28);
}

.susu-product-card .wishlist-toggle-btn {
    top: 0.65rem;
    right: 0.65rem;
    width: 2.55rem;
    height: 2.55rem;
    border-color: rgba(31, 156, 240, 0.2);
    color: #e0567b;
}

.product-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 0.9rem 0.95rem 1rem;
}

.product-card-brand-row,
.product-card-social,
.product-card-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.55rem;
}

.product-card-brand-row {
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
}

.product-card-brand-row span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-card-title {
    min-height: 3rem;
    margin: 0.55rem 0 0.65rem;
    font-size: 0.98rem;
    line-height: 1.45;
    font-weight: 800;
}

.product-card-title a {
    color: var(--text-main);
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.45rem;
}

.product-card-tags span {
    max-width: 100%;
    min-height: 1.75rem;
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.55rem;
    border-radius: 999px;
    background: #eef8ff;
    color: var(--primary-dark);
    font-size: 0.76rem;
    font-weight: 800;
}

.product-card-origin {
    min-height: 1.25rem;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.product-card-price-row {
    margin-top: auto;
    padding-top: 0.65rem;
}

.susu-product-card .price-main {
    color: #e65300;
    font-size: 1.12rem;
    line-height: 1.1;
}

.susu-product-card .price-old {
    margin-top: 0.2rem;
    font-size: 0.78rem;
}

.product-card-social {
    margin-top: 0.7rem;
    color: var(--text-muted);
    font-size: 0.78rem;
}

.product-stars {
    display: inline-flex;
    align-items: center;
    gap: 0.08rem;
    color: #c8d5df;
    white-space: nowrap;
}

.product-stars .is-filled {
    color: #ffc533;
}

.product-stars small {
    margin-left: 0.25rem;
    color: var(--text-muted);
    font-weight: 800;
}

.product-card-actions {
    margin-top: 0.85rem;
}

.product-buy-btn {
    flex: 1;
    min-height: 2.65rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.92rem;
    font-weight: 900;
}

.susu-product-card .wishlist-count {
    max-width: 82px;
    overflow: hidden;
    color: var(--text-muted);
    font-size: 0.72rem;
    text-align: right;
    text-overflow: ellipsis;
}

.storefront-empty,
.storefront-info-panel {
    border: 1px solid rgba(31, 156, 240, 0.12);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow);
}

.storefront-empty {
    padding: 2rem;
    color: var(--text-muted);
    text-align: center;
}

.storefront-info-panel {
    padding: 1.5rem;
}

.storefront-news-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    border-radius: 20px;
    background: #f5fbff;
    color: var(--text-main);
    font-weight: 700;
}

.storefront-news-link:hover {
    color: var(--primary-dark);
}

.storefront-news-link small {
    flex: 0 0 auto;
    color: var(--text-muted);
    font-weight: 600;
}

.storefront-service-list {
    display: grid;
    gap: 0.8rem;
}

.storefront-service-list div {
    padding: 1rem;
    border-radius: 20px;
    background: linear-gradient(135deg, #f2faff, #fff9df);
}

.storefront-service-list strong,
.storefront-service-list span {
    display: block;
}

.storefront-service-list strong {
    margin-bottom: 0.25rem;
}

.storefront-service-list span {
    color: var(--text-muted);
    line-height: 1.55;
}

.skeleton {
    position: relative;
    overflow: hidden;
    background: #eaf2f8;
}

.ad-banner-section {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.ad-banner-top {
    padding-top: 0.85rem;
    padding-bottom: 0;
}

.ad-banner-home {
    padding-top: 0;
}

.ad-banner-catalog {
    padding: 0 0 1rem;
}

.ad-banner-catalog.container {
    max-width: none;
    padding-left: 0;
    padding-right: 0;
}

.ad-banner-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.ad-banner-grid-single {
    grid-template-columns: 1fr;
}

.ad-banner-card {
    position: relative;
    min-height: 190px;
    display: block;
    overflow: hidden;
    border-radius: 26px;
    background: #edf9eb;
    border: 1px solid rgba(79, 155, 87, 0.13);
    box-shadow: 0 16px 38px rgba(79, 155, 87, 0.12);
    color: #fff;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.ad-banner-top .ad-banner-card {
    min-height: 112px;
    border-radius: 22px;
}

.ad-banner-catalog .ad-banner-card {
    min-height: 220px;
}

.ad-banner-card:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 22px 46px rgba(79, 155, 87, 0.18);
}

.ad-banner-card img {
    width: 100%;
    height: 100%;
    min-height: inherit;
    display: block;
    object-fit: cover;
    transition: transform 0.24s ease;
}

.ad-banner-card:hover img {
    transform: scale(1.03);
}

.ad-banner-overlay {
    position: absolute;
    inset: auto 0 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 2.5rem 1.2rem 1.1rem;
    background: linear-gradient(180deg, transparent, rgba(15, 34, 18, 0.82));
}

.ad-banner-overlay span {
    width: fit-content;
    padding: 0.32rem 0.62rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
}

.ad-banner-overlay strong {
    max-width: 26rem;
    font-size: clamp(1.1rem, 2vw, 1.55rem);
    line-height: 1.15;
}

.ad-banner-overlay small {
    max-width: 30rem;
    color: rgba(255, 255, 255, 0.84);
    font-weight: 600;
}

.admin-banner-thumb {
    width: 132px;
    height: 72px;
    object-fit: cover;
    border-radius: 14px;
    border: 1px solid rgba(var(--primary-rgb), 0.16);
}

.admin-banner-preview {
    width: min(100%, 520px);
    max-height: 220px;
    object-fit: cover;
    border-radius: 18px;
    border: 1px solid rgba(var(--primary-rgb), 0.16);
    box-shadow: var(--shadow);
}

.banner-link-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.banner-link-suggestion {
    min-height: 2.2rem;
    padding: 0.45rem 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(var(--primary-rgb), 0.16);
    background: rgba(var(--primary-soft-rgb), 0.9);
    color: var(--primary-dark);
    font-size: 0.85rem;
    font-weight: 700;
    transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.banner-link-suggestion:hover {
    transform: translateY(-1px);
    border-color: rgba(var(--primary-rgb), 0.3);
    background: rgba(var(--primary-rgb), 0.14);
}

.skeleton::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.68), transparent);
    animation: skeleton-loading 1.15s infinite;
}

@keyframes skeleton-loading {
    100% {
        transform: translateX(100%);
    }
}

@media (max-width: 1199.98px) {
    .storefront-header-inner {
        grid-template-columns: 1fr auto;
    }

    .storefront-search {
        grid-column: 1 / -1;
        order: 3;
    }

    .header-location {
        display: none;
    }

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

    .home-brand-strip {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }

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

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

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

    .catalog-search-row {
        grid-template-columns: minmax(16rem, 1fr) minmax(10rem, 14rem) auto;
    }

    .catalog-filter-clear {
        grid-column: 2 / 4;
        justify-self: end;
    }
}

@media (max-width: 991.98px) {
    .storefront-menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .storefront-nav-collapse {
        display: none;
    }

    .storefront-category-nav .collapse:not(.show) {
        display: none;
    }

    .storefront-nav-collapse.show {
        display: block;
    }

    .storefront-category-scroll {
        align-items: stretch;
        flex-direction: column;
        padding: 0.8rem 0;
        overflow: visible;
    }

    .storefront-category-link,
    .storefront-category-button {
        justify-content: flex-start;
        width: 100%;
        background: #fff;
    }

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

    .storefront-hero-copy h1 {
        max-width: 16ch;
    }

    .storefront-hero-visual {
        min-height: 260px;
    }

    .milk-can-main {
        right: 18%;
        bottom: 1.2rem;
    }

    .milk-can-side {
        right: 55%;
        bottom: 1.4rem;
    }

    .storefront-promo-banners {
        grid-template-columns: 1fr;
    }

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

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

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

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

    .catalog-filter-submit,
    .catalog-filter-clear {
        width: 100%;
    }

    .catalog-filter-clear {
        grid-column: auto;
        justify-self: stretch;
    }

    .catalog-filter-groups {
        flex-wrap: nowrap;
        margin-left: -0.2rem;
        margin-right: -0.2rem;
        padding-left: 0.2rem;
        padding-right: 0.2rem;
        overflow-x: auto;
        scrollbar-width: thin;
    }

    .catalog-filter-dropdown {
        position: static;
        flex: 0 0 auto;
    }

    .catalog-filter-menu,
    .catalog-filter-menu-wide {
        left: 1rem;
        right: 1rem;
        width: auto;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .ad-banner-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .storefront-header-inner {
        gap: 0.75rem;
    }

    .storefront-logo {
        min-width: 0;
    }

    .storefront-logo small,
    .header-action-pill {
        display: none;
    }

    .storefront-search {
        min-height: 3rem;
    }

    .storefront-search button {
        padding: 0 0.9rem;
    }

    .storefront-hero-copy {
        padding: 1.5rem;
    }

    .storefront-hero-copy h1 {
        font-size: 2.15rem;
    }

    .milk-can-main {
        width: 170px;
        height: 220px;
    }

    .milk-can-side {
        width: 105px;
        height: 160px;
    }

    .hero-saving-badge {
        right: 1rem;
        top: 1rem;
    }

    .home-brand-strip {
        display: flex;
        gap: 0.65rem;
        margin-left: -0.75rem;
        margin-right: -0.75rem;
        padding: 0.15rem 0.75rem 0.35rem;
        overflow-x: auto;
        scroll-snap-type: x proximity;
        scrollbar-width: thin;
    }

    .home-brand-tile {
        flex: 0 0 8.75rem;
        min-height: 4.6rem;
        scroll-snap-align: start;
    }

    .catalog-hero,
    .catalog-filter-shell,
    .catalog-results-bar {
        border-radius: 14px;
    }

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

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

    .catalog-filter-menu,
    .catalog-filter-menu-wide {
        grid-template-columns: 1fr;
        max-height: 18rem;
    }

    .catalog-promo-tile {
        grid-column: span 3;
        min-height: 13rem;
    }
}

@media (max-width: 575.98px) {
    .storefront-header-main {
        padding: 0.55rem 0;
    }

    .storefront-logo-mark {
        width: 2.6rem;
        height: 2.6rem;
        border-radius: 15px;
    }

    .storefront-logo strong {
        font-size: 1rem;
    }

    .header-cart-pill span:nth-child(2) {
        display: none;
    }

    .product-grid,
    .product-grid-catalog {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem;
    }

    .catalog-product-grid {
        gap: 0.65rem;
    }

    .susu-product-card {
        border-radius: 20px;
    }

    .product-card-media {
        margin: 0.55rem 0.55rem 0;
        border-radius: 17px;
    }

    .product-card-body {
        padding: 0.75rem;
    }

    .catalog-hero,
    .catalog-filter-shell,
    .catalog-results-bar {
        padding: 0.85rem;
    }

    .catalog-hero h1 {
        font-size: 1.55rem;
    }

    .catalog-product-grid .product-card-actions {
        align-items: stretch;
        flex-direction: column;
        gap: 0.45rem;
    }

    .catalog-product-grid .susu-product-card .wishlist-count {
        max-width: 100%;
        text-align: left;
    }

    .catalog-promo-tile {
        grid-column: 1 / -1;
    }

    .home-brand-tile {
        flex-basis: 8rem;
        padding: 0.7rem;
    }

    .home-brand-tile img {
        max-height: 2.75rem;
    }

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

    .dashboard-chart-canvas,
    .dashboard-chart-canvas-sm {
        min-height: 240px;
    }

    .product-card-brand-row,
    .product-card-origin,
    .susu-product-card .wishlist-count {
        display: none;
    }

    .product-card-title {
        min-height: 2.7rem;
        margin-top: 0;
        font-size: 0.88rem;
    }

    .product-card-tags span {
        font-size: 0.7rem;
    }

    .susu-product-card .price-main {
        font-size: 1rem;
    }

    .product-card-social {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.2rem;
    }

    .product-buy-btn {
        min-height: 2.45rem;
        font-size: 0.85rem;
    }
}

/* Pastel green storefront theme */
:root {
    --bg-cream: #f3fbf2;
    --bg-soft: #eaf8e8;
    --bg-accent: #fff8df;
    --line: #d9efd5;
    --text-main: #203828;
    --text-muted: #667969;
    --primary: #92d98b;
    --primary-dark: #4f9b57;
    --primary-rgb: 146, 217, 139;
    --primary-light: #c2efbd;
    --primary-soft-rgb: 237, 249, 235;
    --primary-glow-rgb: 205, 242, 199;
    --secondary: #ffe28a;
    --shadow: 0 14px 34px rgba(79, 155, 87, 0.13);
}

.frontend-body {
    background:
        linear-gradient(180deg, rgba(233, 250, 231, 0.96) 0%, rgba(255, 255, 255, 0.72) 24%, #f7fcf5 100%);
}

.btn-primary {
    background: linear-gradient(135deg, #5fbd69, #9be094);
    box-shadow: 0 12px 26px rgba(79, 155, 87, 0.24);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #4f9b57, #79cb74);
}

.btn-soft,
.header-action-pill,
.storefront-menu-toggle {
    border-color: rgba(79, 155, 87, 0.18);
    box-shadow: 0 8px 20px rgba(79, 155, 87, 0.07);
}

.chip {
    background: #ecf9dc;
    color: #4f8a28;
    border-color: rgba(146, 217, 139, 0.55);
}

.storefront-header {
    border-bottom-color: rgba(79, 155, 87, 0.14);
    box-shadow: 0 10px 30px rgba(79, 155, 87, 0.08);
}

.storefront-logo-mark {
    background: linear-gradient(135deg, #a7e59f, #effadb);
    color: #2f7f3d;
    box-shadow: 0 10px 24px rgba(146, 217, 139, 0.3);
}

.storefront-search {
    border-color: rgba(79, 155, 87, 0.2);
    box-shadow: inset 0 0 0 1px rgba(255, 226, 138, 0.24), 0 10px 24px rgba(79, 155, 87, 0.08);
}

.storefront-search input::placeholder {
    color: #89a08b;
}

.storefront-search button,
.header-cart-pill strong,
.product-discount-badge {
    background: #ffe28a;
    color: #365020;
}

.header-cart-pill {
    background: linear-gradient(135deg, #5fbd69, #94dc8e);
}

.storefront-category-nav {
    border-top-color: rgba(79, 155, 87, 0.1);
    background: rgba(237, 249, 235, 0.86);
}

.storefront-hero {
    background:
        linear-gradient(135deg, rgba(95, 189, 105, 0.96), rgba(152, 222, 145, 0.92) 58%, rgba(255, 226, 138, 0.92));
    box-shadow: 0 24px 54px rgba(79, 155, 87, 0.18);
}

.milk-can {
    background: linear-gradient(180deg, #ffffff 0%, #f0faeb 54%, #daf2d4 100%);
    color: var(--primary-dark);
    box-shadow: 0 24px 50px rgba(50, 112, 56, 0.18);
}

.milk-can::before {
    border-color: #dff3d8;
}

.milk-can span {
    color: #66b85f;
}

.hero-saving-badge {
    color: #5f7a14;
    box-shadow: 0 16px 34px rgba(50, 112, 56, 0.16);
}

.promo-banner:hover {
    box-shadow: 0 20px 42px rgba(79, 155, 87, 0.16);
}

.promo-banner-blue {
    background: linear-gradient(135deg, #edf9e9, #d8f1d2);
}

.promo-banner-yellow {
    background: linear-gradient(135deg, #fff8d9, #ecf7c7);
}

.storefront-link,
.susu-product-card,
.storefront-empty,
.storefront-info-panel {
    box-shadow: 0 12px 30px rgba(79, 155, 87, 0.09);
}

.susu-product-card,
.storefront-empty,
.storefront-info-panel {
    border-color: rgba(79, 155, 87, 0.13);
}

.susu-product-card:hover {
    border-color: rgba(79, 155, 87, 0.3);
    box-shadow: 0 22px 44px rgba(79, 155, 87, 0.16);
}

.product-card-media {
    background: linear-gradient(180deg, #f3fbef, #fff);
}

.product-discount-badge {
    box-shadow: 0 10px 20px rgba(255, 226, 138, 0.3);
}

.susu-product-card .wishlist-toggle-btn {
    border-color: rgba(79, 155, 87, 0.22);
    color: #65ad61;
}

.product-card-tags span {
    background: #edf9eb;
    color: var(--primary-dark);
}

.susu-product-card .price-main {
    color: #388944;
}

.storefront-news-link {
    background: #f4fbf1;
}

.storefront-service-list div {
    background: linear-gradient(135deg, #f2fbef, #fff8df);
}

.skeleton {
    background: #e9f4e5;
}

.header-theme-toggle {
    min-height: 2.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.65rem 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(79, 155, 87, 0.18);
    background: #fff;
    color: var(--text-main);
    font-size: 0.86rem;
    font-weight: 800;
    white-space: nowrap;
    box-shadow: 0 8px 20px rgba(79, 155, 87, 0.07);
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.header-theme-toggle:hover {
    transform: translateY(-1px);
    border-color: rgba(79, 155, 87, 0.3);
}

.header-theme-toggle [data-theme-toggle-icon] {
    min-width: 2.2rem;
    min-height: 1.65rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #edf9eb;
    color: var(--primary-dark);
    font-size: 0.72rem;
}

/* Dark mode */
[data-theme="dark"] {
    color-scheme: dark;
    --bg-cream: #101a13;
    --bg-soft: #16251a;
    --bg-accent: #24351d;
    --line: #294332;
    --text-main: #edf7eb;
    --text-muted: #a8b7a7;
    --primary: #91de8b;
    --primary-dark: #b9f3b2;
    --primary-rgb: 145, 222, 139;
    --primary-light: #c8f6c2;
    --primary-soft-rgb: 25, 43, 29;
    --primary-glow-rgb: 82, 142, 84;
    --secondary: #ffe28a;
    --card: rgba(19, 31, 23, 0.94);
    --shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
}

[data-theme="dark"] body,
[data-theme="dark"] .frontend-body {
    color: var(--text-main);
    background:
        radial-gradient(circle at top left, rgba(91, 171, 91, 0.16), transparent 28%),
        linear-gradient(180deg, #08100b 0%, #111c14 44%, #0d150f 100%);
}

[data-theme="dark"] a {
    color: #b9f3b2;
}

[data-theme="dark"] .site-header,
[data-theme="dark"] .storefront-header {
    background: rgba(12, 22, 15, 0.92);
    border-bottom-color: rgba(145, 222, 139, 0.16);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.32);
}

[data-theme="dark"] .storefront-category-nav {
    background: rgba(16, 30, 20, 0.9);
    border-top-color: rgba(145, 222, 139, 0.12);
}

[data-theme="dark"] .storefront-logo,
[data-theme="dark"] .storefront-logo:hover,
[data-theme="dark"] .storefront-category-link,
[data-theme="dark"] .header-action-pill,
[data-theme="dark"] .header-theme-toggle {
    color: var(--text-main);
}

[data-theme="dark"] .storefront-logo-mark {
    background: linear-gradient(135deg, #6ec66d, #c9f5bb);
    color: #102a14;
    box-shadow: 0 12px 28px rgba(95, 189, 105, 0.22);
}

[data-theme="dark"] .storefront-search,
[data-theme="dark"] .header-action-pill,
[data-theme="dark"] .header-theme-toggle,
[data-theme="dark"] .storefront-menu-toggle {
    border-color: rgba(145, 222, 139, 0.18);
    background: rgba(20, 34, 24, 0.96);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.26);
}

[data-theme="dark"] .storefront-search input {
    color: var(--text-main);
}

[data-theme="dark"] .storefront-search input::placeholder {
    color: #82927f;
}

[data-theme="dark"] .storefront-search button,
[data-theme="dark"] .header-cart-pill strong,
[data-theme="dark"] .product-discount-badge {
    background: #d7f68c;
    color: #13230f;
}

[data-theme="dark"] .search-suggestions {
    border-color: rgba(145, 222, 139, 0.18);
    background: rgba(19, 34, 24, 0.98);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.38);
}

[data-theme="dark"] .search-suggestion-item {
    color: var(--text-main);
}

[data-theme="dark"] .search-suggestion-item:hover {
    background: rgba(145, 222, 139, 0.11);
}

[data-theme="dark"] .search-suggestion-item img {
    border-color: rgba(145, 222, 139, 0.14);
    background: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .search-suggestion-body b {
    color: #c8f6c2;
}

[data-theme="dark"] .search-suggestion-all {
    background: rgba(145, 222, 139, 0.14);
    color: #c8f6c2;
}

[data-theme="dark"] .search-suggestion-all:hover {
    background: rgba(145, 222, 139, 0.2);
}

[data-theme="dark"] .header-cart-pill {
    background: linear-gradient(135deg, #427f47, #68b964);
    box-shadow: 0 12px 28px rgba(39, 91, 44, 0.28);
}

[data-theme="dark"] .header-theme-toggle [data-theme-toggle-icon] {
    background: rgba(145, 222, 139, 0.14);
    color: #c8f6c2;
}

[data-theme="dark"] .storefront-category-link:hover,
[data-theme="dark"] .storefront-category-link-highlight,
[data-theme="dark"] .storefront-category-button {
    background: rgba(145, 222, 139, 0.1);
    color: #c8f6c2;
}

[data-theme="dark"] .chip {
    background: rgba(145, 222, 139, 0.12);
    border-color: rgba(145, 222, 139, 0.22);
    color: #c8f6c2;
}

[data-theme="dark"] .storefront-hero {
    background:
        linear-gradient(135deg, rgba(37, 86, 44, 0.98), rgba(78, 138, 74, 0.96) 58%, rgba(88, 96, 37, 0.9));
    box-shadow: 0 24px 58px rgba(0, 0, 0, 0.36);
}

[data-theme="dark"] .storefront-hero-copy .chip {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.18);
    color: #f4fff0;
}

[data-theme="dark"] .storefront-hero-copy p {
    color: rgba(237, 247, 235, 0.84);
}

[data-theme="dark"] .milk-can {
    background: linear-gradient(180deg, #233326 0%, #15251a 58%, #213922 100%);
    color: #d9ffd2;
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.34);
}

[data-theme="dark"] .milk-can::before {
    background: #213326;
    border-color: #345b37;
}

[data-theme="dark"] .milk-can span,
[data-theme="dark"] .hero-saving-badge {
    color: #d7f68c;
}

[data-theme="dark"] .hero-saving-badge {
    background: rgba(19, 31, 23, 0.96);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.32);
}

[data-theme="dark"] .promo-banner,
[data-theme="dark"] .promo-banner:hover {
    color: var(--text-main);
}

[data-theme="dark"] .promo-banner-blue,
[data-theme="dark"] .promo-banner-yellow,
[data-theme="dark"] .promo-banner-white {
    background: linear-gradient(135deg, #17291b, #213a24);
    border: 1px solid rgba(145, 222, 139, 0.12);
}

[data-theme="dark"] .promo-banner span,
[data-theme="dark"] .storefront-link {
    color: #c8f6c2;
}

[data-theme="dark"] .hero-card,
[data-theme="dark"] .card-soft,
[data-theme="dark"] .product-card,
[data-theme="dark"] .susu-product-card,
[data-theme="dark"] .home-brand-tile,
[data-theme="dark"] .storefront-empty,
[data-theme="dark"] .storefront-info-panel,
[data-theme="dark"] .footer-shell,
[data-theme="dark"] .promotion-list-card,
[data-theme="dark"] .promotion-meta-card,
[data-theme="dark"] .promotion-content-card,
[data-theme="dark"] .promotion-highlight-card,
[data-theme="dark"] .promotion-rule-card,
[data-theme="dark"] .report-summary-card,
[data-theme="dark"] .report-print-card,
[data-theme="dark"] .local-editor {
    border-color: rgba(145, 222, 139, 0.13);
    background: rgba(19, 31, 23, 0.94);
    box-shadow: var(--shadow);
}

[data-theme="dark"] .support-hero-list div,
[data-theme="dark"] .support-info-card,
[data-theme="dark"] .support-contact-mini a {
    border-color: rgba(145, 222, 139, 0.14);
    background: rgba(15, 24, 18, 0.72);
}

[data-theme="dark"] .support-hero-list strong,
[data-theme="dark"] .support-info-card strong,
[data-theme="dark"] .support-contact-mini strong,
[data-theme="dark"] .support-link-list a {
    color: var(--text-main);
}

[data-theme="dark"] .support-hero-list span,
[data-theme="dark"] .support-info-card span,
[data-theme="dark"] .support-info-card p,
[data-theme="dark"] .support-step-list p,
[data-theme="dark"] .support-contact-mini span {
    color: var(--text-muted);
}

[data-theme="dark"] .susu-product-card:hover {
    border-color: rgba(145, 222, 139, 0.28);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.42);
}

[data-theme="dark"] .home-brand-tile:hover {
    border-color: rgba(145, 222, 139, 0.28);
    color: #c8f6c2;
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.36);
}

[data-theme="dark"] .product-card-media,
[data-theme="dark"] .product-gallery-main {
    background: linear-gradient(180deg, #17281b, #101a13);
}

[data-theme="dark"] .product-card-title a,
[data-theme="dark"] .promotion-list-card .text-dark,
[data-theme="dark"] .text-dark {
    color: var(--text-main) !important;
}

[data-theme="dark"] .text-muted,
[data-theme="dark"] .section-subtitle,
[data-theme="dark"] .dashboard-kpi-label,
[data-theme="dark"] .dashboard-kpi-note,
[data-theme="dark"] .product-card-origin,
[data-theme="dark"] .product-card-social,
[data-theme="dark"] .product-card-brand-row,
[data-theme="dark"] .footer-note-item span,
[data-theme="dark"] .footer-meta span,
[data-theme="dark"] .product-description,
[data-theme="dark"] .promotion-list-card-copy,
[data-theme="dark"] .promotion-copy {
    color: var(--text-muted) !important;
}

[data-theme="dark"] .product-card-tags span,
[data-theme="dark"] .promotion-tag,
[data-theme="dark"] .product-stock-pill,
[data-theme="dark"] .product-results-note,
[data-theme="dark"] .product-results-pill {
    background: rgba(145, 222, 139, 0.12);
    border-color: rgba(145, 222, 139, 0.18);
    color: #c8f6c2;
}

[data-theme="dark"] .price-main,
[data-theme="dark"] .susu-product-card .price-main {
    color: #b9f3b2;
}

[data-theme="dark"] .price-old {
    color: #7f927d;
}

[data-theme="dark"] .product-stars {
    color: #3e5141;
}

[data-theme="dark"] .product-stars .is-filled,
[data-theme="dark"] .product-rating-stars .is-filled,
[data-theme="dark"] .review-item-rating .is-filled,
[data-theme="dark"] .review-star-label:hover,
[data-theme="dark"] .review-star-label:hover ~ .review-star-label,
[data-theme="dark"] .review-star-input:checked ~ .review-star-label {
    color: #ffe28a;
}

[data-theme="dark"] .btn-soft,
[data-theme="dark"] .storefront-link,
[data-theme="dark"] .product-pagination-link,
[data-theme="dark"] .product-pagination-ellipsis,
[data-theme="dark"] .product-share-link,
[data-theme="dark"] .local-editor-btn,
[data-theme="dark"] .local-editor-select {
    border-color: rgba(145, 222, 139, 0.16);
    background: rgba(24, 40, 29, 0.96);
    color: var(--text-main);
}

[data-theme="dark"] .product-metric-card,
[data-theme="dark"] .product-favorite-btn,
[data-theme="dark"] .product-gallery-thumb {
    border-color: rgba(145, 222, 139, 0.16);
    background: rgba(24, 40, 29, 0.92);
    color: var(--text-main);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
}

[data-theme="dark"] .product-metric-label,
[data-theme="dark"] .product-metric-card .small,
[data-theme="dark"] .product-favorite-btn .small {
    color: var(--text-muted) !important;
}

[data-theme="dark"] .product-metric-value,
[data-theme="dark"] .product-share-trigger,
[data-theme="dark"] .product-favorite-btn {
    color: var(--text-main);
}

[data-theme="dark"] .product-favorite-btn:hover,
[data-theme="dark"] .product-favorite-btn.is-active,
[data-theme="dark"] .product-gallery-thumb:hover,
[data-theme="dark"] .product-gallery-thumb.is-active {
    border-color: rgba(145, 222, 139, 0.32);
    background: rgba(145, 222, 139, 0.12);
    color: #c8f6c2;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.36);
}

[data-theme="dark"] .product-favorite-btn:hover .small,
[data-theme="dark"] .product-favorite-btn.is-active .small {
    color: #a9cda5 !important;
}

[data-theme="dark"] .btn-soft:hover,
[data-theme="dark"] .storefront-link:hover,
[data-theme="dark"] .product-pagination-link:hover {
    background: rgba(145, 222, 139, 0.12);
    color: #c8f6c2;
}

[data-theme="dark"] .catalog-page {
    background:
        linear-gradient(180deg, rgba(145, 222, 139, 0.08), rgba(8, 16, 11, 0) 19rem),
        var(--body-bg);
}

[data-theme="dark"] .catalog-hero,
[data-theme="dark"] .catalog-filter-shell,
[data-theme="dark"] .catalog-results-bar,
[data-theme="dark"] .catalog-empty,
[data-theme="dark"] .catalog-filter-menu,
[data-theme="dark"] .catalog-filter-dropdown summary,
[data-theme="dark"] .catalog-choice-chip {
    border-color: rgba(145, 222, 139, 0.14);
    background: rgba(19, 31, 23, 0.96);
    color: var(--text-main);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.26);
}

[data-theme="dark"] .catalog-filter-dropdown[open] summary,
[data-theme="dark"] .catalog-filter-dropdown.is-active summary,
[data-theme="dark"] .catalog-choice-chip:hover,
[data-theme="dark"] .catalog-choice-chip:has(input:checked),
[data-theme="dark"] .catalog-active-filters a,
[data-theme="dark"] .catalog-results-bar > span,
[data-theme="dark"] .catalog-total-pill,
[data-theme="dark"] .catalog-kicker {
    border-color: rgba(145, 222, 139, 0.22);
    background: rgba(145, 222, 139, 0.12);
    color: #c8f6c2;
}

[data-theme="dark"] .catalog-search-field input,
[data-theme="dark"] .catalog-sort-field select {
    border-color: rgba(145, 222, 139, 0.16);
    background: rgba(12, 22, 15, 0.96);
    color: var(--text-main);
}

[data-theme="dark"] .catalog-search-field input::placeholder {
    color: #82927f;
}

[data-theme="dark"] .catalog-product-grid .susu-product-card {
    border-color: rgba(145, 222, 139, 0.13);
    background: rgba(19, 31, 23, 0.96);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .catalog-product-grid .product-card-media {
    background: rgba(24, 40, 29, 0.94);
}

[data-theme="dark"] .catalog-product-grid .product-card-tags span {
    background: rgba(145, 222, 139, 0.12);
    color: #c8f6c2;
}

[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select,
[data-theme="dark"] .input-group-text,
[data-theme="dark"] .local-editor-surface,
[data-theme="dark"] .local-editor-source {
    border-color: rgba(145, 222, 139, 0.16);
    background-color: rgba(12, 22, 15, 0.92);
    color: var(--text-main);
}

[data-theme="dark"] .form-control::placeholder {
    color: #82927f;
}

[data-theme="dark"] .form-control:focus,
[data-theme="dark"] .form-select:focus {
    border-color: rgba(145, 222, 139, 0.55);
    box-shadow: 0 0 0 0.18rem rgba(145, 222, 139, 0.14);
}

[data-theme="dark"] .product-filter-panel,
[data-theme="dark"] .product-filter-option,
[data-theme="dark"] .product-category-option,
[data-theme="dark"] .footer-note-item,
[data-theme="dark"] .storefront-news-link,
[data-theme="dark"] .storefront-service-list div,
[data-theme="dark"] .review-notice,
[data-theme="dark"] .cart-promo-box,
[data-theme="dark"] .cart-promo-state,
[data-theme="dark"] .report-inline-item,
[data-theme="dark"] .report-rank-item,
[data-theme="dark"] .report-empty-state,
[data-theme="dark"] .print-info-block {
    border-color: rgba(145, 222, 139, 0.12);
    background: rgba(24, 40, 29, 0.86);
    color: var(--text-main);
}

[data-theme="dark"] .report-hero-meta span,
[data-theme="dark"] .report-count-pill,
[data-theme="dark"] .report-rank-badge {
    background: rgba(145, 222, 139, 0.12);
    color: #c8f6c2;
}

[data-theme="dark"] .product-filter-panel.is-active,
[data-theme="dark"] .product-filter-panel[open],
[data-theme="dark"] .product-filter-option:hover,
[data-theme="dark"] .product-category-option:hover {
    border-color: rgba(145, 222, 139, 0.24);
    background: rgba(31, 52, 36, 0.92);
}

[data-theme="dark"] .table,
[data-theme="dark"] .product-spec-table td,
[data-theme="dark"] .product-spec-table th,
[data-theme="dark"] .rich-content {
    color: var(--text-main);
    border-color: rgba(145, 222, 139, 0.12);
}

[data-theme="dark"] .product-spec-table th,
[data-theme="dark"] .rich-content th {
    background: rgba(145, 222, 139, 0.1);
}

[data-theme="dark"] .site-footer {
    background: rgba(8, 16, 11, 0.82);
    border-top-color: rgba(145, 222, 139, 0.12);
}

[data-theme="dark"] .footer-shell {
    background:
        radial-gradient(circle at top left, rgba(91, 171, 91, 0.16), transparent 32%),
        rgba(19, 31, 23, 0.94);
}

[data-theme="dark"] .footer-badge {
    border-color: rgba(145, 222, 139, 0.16);
    background: rgba(145, 222, 139, 0.1);
    color: var(--text-main);
}

[data-theme="dark"] .skeleton {
    background: #1c2f20;
}

[data-theme="dark"] .ad-banner-card {
    background: #16251a;
    border-color: rgba(145, 222, 139, 0.14);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
}

[data-theme="dark"] .admin-banner-thumb,
[data-theme="dark"] .admin-banner-preview {
    border-color: rgba(145, 222, 139, 0.16);
}

[data-theme="dark"] .banner-link-suggestion {
    border-color: rgba(145, 222, 139, 0.16);
    background: rgba(145, 222, 139, 0.1);
    color: #c8f6c2;
}

[data-theme="dark"] .banner-link-suggestion:hover {
    border-color: rgba(145, 222, 139, 0.28);
    background: rgba(145, 222, 139, 0.16);
}

[data-theme="dark"] .flash-toast,
[data-theme="dark"] .product-share-links {
    border-color: rgba(145, 222, 139, 0.16);
    background: rgba(19, 31, 23, 0.98);
    color: var(--text-main);
}

[data-theme="dark"] .product-share-link:hover {
    border-color: rgba(145, 222, 139, 0.3);
    background: rgba(145, 222, 139, 0.12);
    color: #c8f6c2;
}

@media (max-width: 575.98px) {
    .header-theme-toggle {
        width: 2.85rem;
        padding: 0;
    }

    .header-theme-toggle [data-theme-toggle-label] {
        display: none;
    }
}

/* Dark mode fixes for Bootstrap and legacy frontend blocks */
[data-theme="dark"] .frontend-body .card {
    background: rgba(19, 31, 23, 0.94);
    color: var(--text-main);
    border-color: rgba(145, 222, 139, 0.13);
    box-shadow: var(--shadow) !important;
}

[data-theme="dark"] .frontend-body .card h1,
[data-theme="dark"] .frontend-body .card h2,
[data-theme="dark"] .frontend-body .card h3,
[data-theme="dark"] .frontend-body .card h4,
[data-theme="dark"] .frontend-body .card h5,
[data-theme="dark"] .frontend-body .card h6 {
    color: var(--text-main);
}

[data-theme="dark"] .auth-divider::before {
    border-top-color: rgba(145, 222, 139, 0.18);
}

[data-theme="dark"] .auth-divider span {
    background: rgba(19, 31, 23, 0.98);
    color: var(--text-muted);
}

[data-theme="dark"] .btn-google {
    background: rgba(24, 40, 29, 0.96);
    border-color: rgba(145, 222, 139, 0.16);
    color: var(--text-main);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

[data-theme="dark"] .btn-google:hover {
    background: rgba(31, 52, 36, 0.98);
    border-color: rgba(145, 222, 139, 0.26);
    color: var(--text-main);
}

[data-theme="dark"] .table,
[data-theme="dark"] .product-spec-table,
[data-theme="dark"] .rich-content table {
    --bs-table-bg: rgba(19, 31, 23, 0.94);
    --bs-table-color: var(--text-main);
    --bs-table-border-color: rgba(145, 222, 139, 0.14);
    --bs-table-striped-bg: rgba(24, 40, 29, 0.96);
    --bs-table-hover-bg: rgba(31, 52, 36, 0.96);
    color: var(--text-main);
    background: rgba(19, 31, 23, 0.94);
}

[data-theme="dark"] .table > :not(caption) > * > *,
[data-theme="dark"] .product-spec-table > :not(caption) > * > *,
[data-theme="dark"] .rich-content table > :not(caption) > * > * {
    color: var(--text-main);
    background-color: rgba(19, 31, 23, 0.94);
    border-color: rgba(145, 222, 139, 0.14);
}

[data-theme="dark"] .product-spec-table th,
[data-theme="dark"] .rich-content th {
    color: #eafbe7;
    background: rgba(41, 67, 50, 0.96) !important;
}

[data-theme="dark"] .product-spec-table td,
[data-theme="dark"] .rich-content td {
    color: #dbead9;
    background: rgba(15, 26, 18, 0.96) !important;
}

[data-theme="dark"] .product-category-node {
    border-color: rgba(145, 222, 139, 0.14);
    background: rgba(18, 32, 22, 0.9);
    box-shadow: none;
}

[data-theme="dark"] .product-category-node.is-open,
[data-theme="dark"] .product-category-node.is-selected {
    border-color: rgba(145, 222, 139, 0.24);
    background: rgba(24, 43, 29, 0.96);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.24);
}

[data-theme="dark"] .product-category-trigger {
    color: var(--text-main);
}

[data-theme="dark"] .product-category-trigger::after {
    background: rgba(145, 222, 139, 0.14);
    color: #c8f6c2;
}

[data-theme="dark"] .product-category-submenu {
    background: transparent;
}

[data-theme="dark"] .product-category-option {
    background: rgba(35, 55, 42, 0.94);
    border-color: rgba(145, 222, 139, 0.14);
    color: var(--text-main);
}

[data-theme="dark"] .product-category-option:hover {
    background: rgba(43, 68, 50, 0.98);
    border-color: rgba(145, 222, 139, 0.24);
}

[data-theme="dark"] .form-check-input {
    background-color: rgba(8, 16, 11, 0.96);
    border-color: rgba(145, 222, 139, 0.42);
}

[data-theme="dark"] .form-check-input:checked {
    background-color: #74c874;
    border-color: #74c874;
}

/* Admin dark mode */
[data-theme="dark"] .admin-body {
    background: #08100b;
    color: var(--text-main);
}

[data-theme="dark"] .admin-shell {
    background:
        radial-gradient(circle at top left, rgba(91, 171, 91, 0.16), transparent 24%),
        radial-gradient(circle at top right, rgba(145, 222, 139, 0.08), transparent 24%),
        linear-gradient(180deg, #08100b 0%, #111c14 48%, #0d150f 100%);
}

[data-theme="dark"] .admin-main {
    color: var(--text-main);
}

[data-theme="dark"] .admin-sidebar {
    background: rgba(12, 22, 15, 0.94);
    border-right-color: rgba(145, 222, 139, 0.14);
    box-shadow: 14px 0 34px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .admin-brand {
    border-bottom-color: rgba(145, 222, 139, 0.14);
}

[data-theme="dark"] .admin-brand .text-dark,
[data-theme="dark"] .admin-brand a,
[data-theme="dark"] .admin-main .text-dark {
    color: var(--text-main) !important;
}

[data-theme="dark"] .admin-sidebar .nav-link,
[data-theme="dark"] .admin-menu-summary {
    color: #dcebd9;
}

[data-theme="dark"] .admin-sidebar .nav-link:hover {
    background: rgba(145, 222, 139, 0.1);
    color: #f3fff0;
}

[data-theme="dark"] .admin-sidebar .nav-link.active {
    background: linear-gradient(135deg, rgba(145, 222, 139, 0.18), rgba(103, 180, 101, 0.16));
    color: #eaffdf;
    box-shadow: inset 0 0 0 1px rgba(145, 222, 139, 0.2);
}

[data-theme="dark"] .admin-nav-badge {
    background: #ff6b6b;
    color: #240909;
    box-shadow: 0 10px 22px rgba(255, 107, 107, 0.18);
}

[data-theme="dark"] .admin-menu-group {
    border-color: rgba(145, 222, 139, 0.13);
    background: rgba(20, 34, 24, 0.82);
}

[data-theme="dark"] .admin-menu-group[open] {
    background: rgba(24, 42, 29, 0.92);
}

[data-theme="dark"] .admin-sidebar-toggle,
[data-theme="dark"] .admin-sidebar-close,
[data-theme="dark"] .admin-sidebar-action-btn {
    border-color: rgba(145, 222, 139, 0.18);
    background: rgba(20, 34, 24, 0.96);
    color: var(--text-main);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .admin-sidebar-toggle:hover,
[data-theme="dark"] .admin-sidebar-close:hover,
[data-theme="dark"] .admin-sidebar-action-btn:hover {
    background: rgba(31, 52, 36, 0.98);
    border-color: rgba(145, 222, 139, 0.28);
    color: #c8f6c2;
}

[data-theme="dark"] .admin-sidebar-action-btn [data-theme-toggle-icon] {
    background: rgba(145, 222, 139, 0.14);
    color: #c8f6c2;
}

[data-theme="dark"] .admin-card,
[data-theme="dark"] .admin-body .card,
[data-theme="dark"] .admin-body .modal-content,
[data-theme="dark"] .admin-body .dropdown-menu,
[data-theme="dark"] .admin-body .list-group-item,
[data-theme="dark"] .admin-body .soft-panel,
[data-theme="dark"] .admin-body .stat-card,
[data-theme="dark"] .admin-body .report-summary-card,
[data-theme="dark"] .admin-body .report-print-card {
    background: rgba(19, 31, 23, 0.94);
    border-color: rgba(145, 222, 139, 0.13);
    color: var(--text-main);
    box-shadow: var(--shadow);
}

[data-theme="dark"] .admin-order-notice {
    border-color: rgba(255, 107, 107, 0.18);
    background: linear-gradient(135deg, rgba(45, 25, 18, 0.96), rgba(18, 30, 21, 0.94));
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .admin-order-notice.is-updated {
    border-color: rgba(255, 107, 107, 0.42);
    box-shadow: 0 22px 48px rgba(255, 107, 107, 0.12);
}

[data-theme="dark"] .admin-order-notice-kicker {
    color: #ffaaa5;
}

[data-theme="dark"] .admin-order-notice h2,
[data-theme="dark"] .admin-order-notice-item,
[data-theme="dark"] .admin-order-notice-item:hover {
    color: var(--text-main);
}

[data-theme="dark"] .admin-order-notice p,
[data-theme="dark"] .admin-order-notice-item span,
[data-theme="dark"] .admin-order-notice-item small {
    color: var(--text-muted);
}

[data-theme="dark"] .admin-order-notice-item {
    border-color: rgba(255, 107, 107, 0.14);
    background: rgba(15, 24, 18, 0.78);
}

[data-theme="dark"] .admin-order-notice-item:hover {
    border-color: rgba(255, 107, 107, 0.28);
}

[data-theme="dark"] .admin-body .card-header,
[data-theme="dark"] .admin-body .card-footer,
[data-theme="dark"] .admin-body .modal-header,
[data-theme="dark"] .admin-body .modal-footer {
    border-color: rgba(145, 222, 139, 0.12);
    background: rgba(24, 40, 29, 0.76);
    color: var(--text-main);
}

[data-theme="dark"] .admin-body .table {
    --bs-table-bg: rgba(19, 31, 23, 0.94);
    --bs-table-color: var(--text-main);
    --bs-table-border-color: rgba(145, 222, 139, 0.14);
    --bs-table-striped-bg: rgba(24, 40, 29, 0.96);
    --bs-table-hover-bg: rgba(31, 52, 36, 0.96);
    color: var(--text-main);
}

[data-theme="dark"] .admin-body .table > :not(caption) > * > * {
    color: var(--text-main);
    background-color: transparent;
    border-color: rgba(145, 222, 139, 0.14);
}

[data-theme="dark"] .admin-body .table thead th {
    background: rgba(41, 67, 50, 0.96);
    color: #eafbe7;
}

[data-theme="dark"] .admin-body .table tbody tr:hover > * {
    background: rgba(145, 222, 139, 0.08);
}

[data-theme="dark"] .admin-body .form-control,
[data-theme="dark"] .admin-body .form-select,
[data-theme="dark"] .admin-body .input-group-text,
[data-theme="dark"] .admin-body textarea,
[data-theme="dark"] .admin-body .local-editor-surface,
[data-theme="dark"] .admin-body .local-editor-source {
    border-color: rgba(145, 222, 139, 0.16);
    background-color: rgba(12, 22, 15, 0.92);
    color: var(--text-main);
}

[data-theme="dark"] .admin-body .form-control::placeholder,
[data-theme="dark"] .admin-body textarea::placeholder {
    color: #82927f;
}

[data-theme="dark"] .admin-body .form-control:focus,
[data-theme="dark"] .admin-body .form-select:focus {
    border-color: rgba(145, 222, 139, 0.55);
    box-shadow: 0 0 0 0.18rem rgba(145, 222, 139, 0.14);
}

[data-theme="dark"] .admin-body .btn-soft,
[data-theme="dark"] .admin-body .btn-outline-primary,
[data-theme="dark"] .admin-body .local-editor-btn,
[data-theme="dark"] .admin-body .local-editor-select,
[data-theme="dark"] .admin-body .page-link {
    border-color: rgba(145, 222, 139, 0.16);
    background: rgba(24, 40, 29, 0.96);
    color: var(--text-main);
}

[data-theme="dark"] .admin-body .btn-soft:hover,
[data-theme="dark"] .admin-body .btn-outline-primary:hover,
[data-theme="dark"] .admin-body .page-link:hover {
    background: rgba(145, 222, 139, 0.12);
    color: #c8f6c2;
}

[data-theme="dark"] .admin-body .btn-primary {
    background: linear-gradient(135deg, #5fbd69, #9be094);
    color: #102a14;
}

[data-theme="dark"] .admin-body .text-muted,
[data-theme="dark"] .admin-body .form-text,
[data-theme="dark"] .admin-body small {
    color: var(--text-muted) !important;
}

[data-theme="dark"] .admin-body .badge.text-bg-secondary {
    background-color: #3a4a3a !important;
    color: #eafbe7 !important;
}

[data-theme="dark"] .admin-body .badge.text-bg-warning {
    background-color: #61551f !important;
    color: #fff5c4 !important;
}

[data-theme="dark"] .admin-body .badge.text-bg-success {
    background-color: #245b33 !important;
    color: #d8ffd8 !important;
}

[data-theme="dark"] .admin-body .badge.text-bg-danger {
    background-color: #6b2b2b !important;
    color: #ffe0e0 !important;
}

[data-theme="dark"] .admin-tree-branch {
    border-color: rgba(145, 222, 139, 0.34);
}

[data-theme="dark"] .admin-tree-thumb {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(145, 222, 139, 0.18);
}

[data-theme="dark"] .admin-tree-level {
    background: rgba(145, 222, 139, 0.14);
    color: #c8f6c2;
}

[data-theme="dark"] .admin-body .flash-toast {
    border-color: rgba(145, 222, 139, 0.16);
    background: rgba(19, 31, 23, 0.98);
    color: var(--text-main);
}

/* Storefront mega category menu and account dropdown */
.header-account-menu {
    position: relative;
}

.header-account-trigger {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.08rem;
    line-height: 1.1;
}

.header-account-trigger span {
    color: var(--text-muted);
    font-size: 0.72rem;
}

.header-account-trigger strong {
    max-width: 8.5rem;
    overflow: hidden;
    color: inherit;
    font-size: 0.9rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.header-account-dropdown {
    position: absolute;
    top: calc(100% + 0.7rem);
    right: 0;
    z-index: 1100;
    width: min(240px, calc(100vw - 2rem));
    display: grid;
    gap: 0.35rem;
    padding: 0.7rem;
    border-radius: 20px;
    border: 1px solid rgba(79, 155, 87, 0.16);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 20px 44px rgba(79, 155, 87, 0.16);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.header-account-menu:hover .header-account-dropdown,
.header-account-menu:focus-within .header-account-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.header-account-dropdown::before {
    content: "";
    position: absolute;
    top: -0.7rem;
    right: 1.4rem;
    width: 1rem;
    height: 1rem;
    transform: rotate(45deg);
    border-left: 1px solid rgba(79, 155, 87, 0.16);
    border-top: 1px solid rgba(79, 155, 87, 0.16);
    background: inherit;
}

.header-account-dropdown a,
.header-account-dropdown button {
    width: 100%;
    min-height: 2.65rem;
    display: flex;
    align-items: center;
    padding: 0.65rem 0.8rem;
    border: 0;
    border-radius: 14px;
    background: transparent;
    color: var(--text-main);
    font: inherit;
    font-weight: 700;
    text-align: left;
}

.header-account-dropdown a:hover,
.header-account-dropdown button:hover {
    background: rgba(146, 217, 139, 0.14);
    color: var(--primary-dark);
}

.header-account-dropdown form {
    margin: 0;
    padding-top: 0.35rem;
    border-top: 1px solid rgba(79, 155, 87, 0.12);
}

.header-account-dropdown form button {
    color: #c75353;
}

.storefront-mega-menu {
    position: relative;
    flex: 0 0 auto;
}

.storefront-category-nav {
    position: relative;
    z-index: 1032;
    overflow: visible;
}

.storefront-category-scroll {
    overflow: visible;
}

.storefront-mega-trigger {
    min-height: 2.45rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.55rem 0.95rem;
    border: 0;
    border-radius: 14px;
    background: rgba(79, 155, 87, 0.12);
    color: var(--text-main);
    font: inherit;
    font-weight: 900;
    white-space: nowrap;
}

.storefront-mega-trigger span {
    font-size: 1.1rem;
    line-height: 1;
}

.storefront-mega-panel {
    position: absolute;
    top: calc(100% + 0.65rem);
    left: 0;
    z-index: 1098;
    width: min(760px, calc(100vw - 2rem));
    min-height: 440px;
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    overflow: hidden;
    border-radius: 24px;
    border: 1px solid rgba(79, 155, 87, 0.13);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 26px 58px rgba(79, 155, 87, 0.18);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.storefront-mega-menu:hover .storefront-mega-panel,
.storefront-mega-menu:focus-within .storefront-mega-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.storefront-mega-sidebar {
    display: grid;
    align-content: start;
    gap: 0.15rem;
    padding: 0.8rem;
    background: #f5fbf1;
}

.storefront-mega-category {
    min-height: 3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    padding: 0.72rem 0.85rem;
    border-radius: 16px;
    color: var(--text-main);
    font-weight: 800;
}

.storefront-mega-category:hover,
.storefront-mega-category.is-active {
    background: #fff;
    color: var(--primary-dark);
}

.storefront-mega-category small {
    color: var(--text-muted);
    font-size: 1.3rem;
    line-height: 1;
}

.storefront-mega-content {
    display: grid;
    gap: 1.1rem;
    align-content: start;
    padding: 1rem;
}

.storefront-mega-content-panel {
    display: grid;
    gap: 1rem;
}

.storefront-mega-content-panel[hidden] {
    display: none !important;
}

.storefront-mega-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.2rem 0.1rem 0;
}

.storefront-mega-panel-head span {
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.storefront-mega-panel-head h3 {
    margin: 0.18rem 0 0;
    color: var(--text-main);
    font-size: 1.3rem;
    font-weight: 900;
}

.storefront-mega-panel-head a {
    flex: 0 0 auto;
    padding: 0.5rem 0.8rem;
    border-radius: 999px;
    background: rgba(146, 217, 139, 0.14);
    color: var(--primary-dark);
    font-size: 0.86rem;
    font-weight: 900;
}

.storefront-mega-quick {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.storefront-mega-quick a {
    min-height: 5.4rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 0.2rem;
    padding: 0.9rem;
    border-radius: 18px;
    background: linear-gradient(135deg, #edf9e9, #fff8d9);
    color: var(--text-main);
}

.storefront-mega-quick span {
    color: var(--primary-dark);
    font-size: 0.82rem;
    font-weight: 800;
}

.storefront-mega-quick strong {
    line-height: 1.2;
}

.storefront-mega-groups {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.storefront-mega-group {
    display: grid;
    align-content: start;
    gap: 0.45rem;
}

.storefront-mega-group a,
.storefront-mega-group span {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
}

.storefront-mega-group a:hover {
    color: var(--primary-dark);
}

.storefront-mega-group-title {
    margin-bottom: 0.15rem;
    color: var(--text-main) !important;
    font-size: 0.96rem !important;
    font-weight: 900 !important;
}

[data-theme="dark"] .header-account-dropdown,
[data-theme="dark"] .storefront-mega-panel {
    border-color: rgba(145, 222, 139, 0.16);
    background: rgba(19, 31, 23, 0.98);
    box-shadow: 0 26px 58px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .header-account-dropdown::before {
    border-color: rgba(145, 222, 139, 0.16);
}

[data-theme="dark"] .header-account-dropdown a,
[data-theme="dark"] .header-account-dropdown button {
    color: var(--text-main);
}

[data-theme="dark"] .header-account-dropdown a:hover,
[data-theme="dark"] .header-account-dropdown button:hover,
[data-theme="dark"] .storefront-mega-trigger {
    background: rgba(145, 222, 139, 0.12);
    color: #c8f6c2;
}

[data-theme="dark"] .header-account-dropdown form {
    border-top-color: rgba(145, 222, 139, 0.13);
}

[data-theme="dark"] .storefront-mega-sidebar {
    background: rgba(14, 27, 18, 0.96);
}

[data-theme="dark"] .storefront-mega-category {
    color: var(--text-main);
}

[data-theme="dark"] .storefront-mega-category:hover,
[data-theme="dark"] .storefront-mega-category.is-active {
    background: rgba(145, 222, 139, 0.1);
    color: #c8f6c2;
}

[data-theme="dark"] .storefront-mega-panel-head h3 {
    color: var(--text-main);
}

[data-theme="dark"] .storefront-mega-panel-head a {
    background: rgba(145, 222, 139, 0.12);
    color: #c8f6c2;
}

[data-theme="dark"] .storefront-mega-quick a {
    background: linear-gradient(135deg, #17291b, #2a321c);
    color: var(--text-main);
}

[data-theme="dark"] .storefront-mega-quick span,
[data-theme="dark"] .storefront-mega-group a:hover,
[data-theme="dark"] .storefront-mega-group-title {
    color: #c8f6c2 !important;
}

@media (max-width: 991.98px) {
    .header-account-trigger strong,
    .header-account-trigger span {
        display: none;
    }

    .header-account-trigger::before {
        content: "TK";
    }

    .header-account-dropdown {
        right: -4.5rem;
    }

    .storefront-mega-menu {
        width: 100%;
    }

    .storefront-mega-trigger {
        width: 100%;
        justify-content: flex-start;
        background: #fff;
        border-radius: 999px;
    }

    .storefront-mega-panel {
        position: static;
        width: 100%;
        min-height: 0;
        grid-template-columns: 1fr;
        margin-top: 0.65rem;
        display: none;
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .storefront-mega-menu:hover .storefront-mega-panel,
    .storefront-mega-menu:focus-within .storefront-mega-panel {
        display: grid;
    }

    .storefront-mega-quick,
    .storefront-mega-groups {
        grid-template-columns: 1fr;
    }

    [data-theme="dark"] .storefront-mega-trigger {
        background: rgba(145, 222, 139, 0.12);
    }
}

@media (max-width: 575.98px) {
    .header-account-trigger {
        width: 2.85rem;
        padding-left: 0;
        padding-right: 0;
        align-items: center;
    }

    .header-account-dropdown {
        right: -7.25rem;
    }
}
