/* bomohkucing.my - stylesheet utama */
/* Tema: gaya Apple — permukaan kaca lut sinar (frosted glass) atas latar warna lembut */

:root {
    --brand-green: #34c759;
    --brand-green-light: #30d158;
    --brand-green-text: #248a3d;
    --brand-forest: #1d1d1f;
    --brand-teal: #0071e3;
    --brand-teal-text: #0066cc;
    --brand-orange: #2997ff;
    --brand-orange-text: #bf4800;
    --brand-red: #ff3b30;
    --bg: #f5f5f7;
    --bg-soft: rgba(255, 255, 255, 0.4);
    --bg-elevated: rgba(255, 255, 255, 0.62);
    --bg-elevated-2: rgba(255, 255, 255, 0.42);
    --fg: #1d1d1f;
    --muted: #6e6e73;
    --border: rgba(0, 0, 0, 0.08);
    --border-strong: rgba(0, 0, 0, 0.14);
    --radius: 22px;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    --glass-blur: saturate(180%) blur(20px);
    --glass-edge: rgba(255, 255, 255, 0.7);
    --glass-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background-color: var(--bg);
    background-image:
        radial-gradient(ellipse 46rem 34rem at 0% 0%, rgba(0, 113, 227, 0.2), transparent 70%),
        radial-gradient(ellipse 40rem 34rem at 100% 18%, rgba(191, 90, 242, 0.16), transparent 70%),
        radial-gradient(ellipse 42rem 32rem at 12% 72%, rgba(52, 199, 89, 0.16), transparent 70%),
        radial-gradient(ellipse 38rem 30rem at 92% 92%, rgba(255, 159, 10, 0.14), transparent 70%);
    background-attachment: fixed;
    color: var(--fg);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    letter-spacing: -0.01em;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

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

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 64px 0;
}

.section-alt {
    background: rgba(255, 255, 255, 0.38);
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
    border-top: 1px solid var(--glass-edge);
    border-bottom: 1px solid var(--border);
}

.section-subtitle {
    margin: -8px 0 20px;
    color: var(--muted);
    font-size: 0.95rem;
}

.section-narrow {
    max-width: 640px;
}

.text-center {
    text-align: center;
}

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

.text-danger {
    color: var(--brand-red);
    font-weight: 600;
}

/* Gradient text helper */
.text-gradient {
    background: linear-gradient(90deg, var(--brand-green-text), var(--brand-teal-text));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(22, 22, 23, 0.72);
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 20px;
}

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

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.brand-logo {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    object-fit: contain;
}

.brand-name {
    font-weight: 700;
    font-size: 1.15rem;
    color: #f5f5f7;
    letter-spacing: -0.02em;
}

.brand-accent {
    color: var(--brand-orange);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
    font-size: 0.85rem;
}

.main-nav a {
    padding: 8px 14px;
    border-radius: 980px;
    color: rgba(245, 245, 247, 0.8);
    transition: background 0.15s, color 0.15s;
}

.main-nav a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.nav-shop-link {
    padding: 8px 18px;
    border-radius: 980px;
    background: var(--brand-teal);
    color: #ffffff;
    font-weight: 500;
    font-size: 0.85rem;
    transition: background 0.15s;
}

.nav-shop-link:hover {
    background: #0077ed;
    color: #ffffff;
}

.nav-login-link {
    padding: 8px 18px !important;
    border-radius: 980px !important;
    background: rgba(255, 255, 255, 0.12) !important;
    color: #f5f5f7 !important;
    font-weight: 500;
    font-size: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    transition: background 0.15s;
}

.nav-login-link:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    color: #fff !important;
}

.cart-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px !important;
    border-radius: 980px !important;
    background: rgba(255, 255, 255, 0.12) !important;
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #f5f5f7 !important;
    font-weight: 500 !important;
    font-size: 0.85rem;
    transition: background 0.15s;
}

.cart-link:hover {
    background: rgba(255, 255, 255, 0.2) !important;
}

.cart-badge {
    background: var(--brand-red);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

/* Trust bar */
.trust-bar {
    background: var(--bg-elevated);
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

.trust-bar-inner {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 32px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--fg);
    font-size: 0.85rem;
    font-weight: 700;
}

.trust-icon {
    font-size: 1.1rem;
}

/* Footer */
.site-footer {
    margin-top: 40px;
    background: rgba(255, 255, 255, 0.5);
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
    border-top: 1px solid var(--border);
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 28px 20px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    object-fit: contain;
    background: #ffffff;
    padding: 2px;
}

.footer-title {
    margin: 0;
    font-weight: 600;
    color: var(--fg);
}

.footer-tagline {
    margin: 0;
    font-size: 0.8rem;
    color: var(--muted);
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    font-size: 0.8rem;
    color: #424245;
}

.footer-nav a:hover {
    color: var(--brand-teal-text);
}

.footer-copy {
    margin: 0;
    font-size: 0.75rem;
    color: #86868b;
}

/* Hero — teks kiri, banner dalam bingkai kanan */
.hero-visual {
    position: relative;
}

.hero-visual::before {
    content: '';
    position: absolute;
    inset: 8% 4%;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 113, 227, 0.45), rgba(52, 199, 89, 0.4));
    filter: blur(50px);
}

.hero-frame {
    position: relative;
    padding: 10px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.35);
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-edge);
    box-shadow: var(--glass-highlight), 0 24px 60px rgba(0, 0, 0, 0.12);
}

.hero-banner-img {
    width: 100%;
    height: auto;
    border-radius: 21px;
    display: block;
}

.hero-float-chip {
    position: absolute;
    left: 26px;
    bottom: -18px;
    padding: 10px 16px;
    border-radius: 980px;
    background: rgba(255, 255, 255, 0.7);
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-edge);
    color: var(--fg);
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: var(--glass-highlight), 0 10px 30px rgba(0, 0, 0, 0.12);
}

/* Produk utama melekat di bucu bawah kanan skrin */
.top-product-float {
    position: fixed;
    z-index: 30;
    right: 20px;
    bottom: 20px;
    display: flex;
    align-items: flex-end;
    gap: 10px;
    transition: transform 0.2s ease;
}

.top-product-float:hover {
    transform: translateY(-4px);
}

.top-product-float-img {
    width: auto;
    height: 180px;
    transform: rotate(4deg);
    filter: drop-shadow(0 14px 20px rgba(0, 0, 0, 0.25));
}

.top-product-float-label {
    margin-bottom: 20px;
    padding: 9px 16px;
    border-radius: 980px;
    background: rgba(29, 29, 31, 0.72);
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #f5f5f7;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.hero {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.hero-sky {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.hero-sky::before,
.hero-sky::after {
    content: '';
    position: absolute;
    width: 30rem;
    height: 30rem;
    border-radius: 50%;
    filter: blur(40px);
}

.hero-sky::before {
    top: -16rem;
    left: -8rem;
    background: radial-gradient(circle, rgba(0, 113, 227, 0.35) 0%, transparent 68%);
}

.hero-sky::after {
    right: -10rem;
    bottom: -20rem;
    background: radial-gradient(circle, rgba(191, 90, 242, 0.28) 0%, transparent 68%);
}

.hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    gap: 44px;
    padding: 48px 20px 64px;
}

.hero-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
}

@media (min-width: 900px) {
    .hero-inner {
        grid-template-columns: 1fr 1.08fr;
        gap: 56px;
        padding: 64px 20px 80px;
    }
    .hero-copy {
        align-items: flex-start;
        text-align: left;
    }
    .hero-copy .hero-actions {
        justify-content: flex-start;
    }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px;
    border-radius: 980px;
    background: rgba(255, 255, 255, 0.55);
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-edge);
    color: var(--fg);
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: var(--glass-highlight), 0 4px 16px rgba(0, 0, 0, 0.06);
}

.hero-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--brand-green);
    box-shadow: 0 0 0 4px rgba(52, 199, 89, 0.2);
}

.hero h1 {
    max-width: 580px;
    font-size: clamp(2.1rem, 4.6vw, 3.3rem);
    font-weight: 700;
    line-height: 1.08;
    margin: 0;
    color: var(--fg);
    letter-spacing: -0.035em;
}

.text-brand-dark {
    background: linear-gradient(90deg, #0071e3, #34c759);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero p,
.hero-desc {
    max-width: 500px;
    color: var(--muted);
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.6;
}

.btn-lg {
    padding: 15px 34px;
    font-size: 1rem;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Stats grid (legacy, kept for other pages) */
.stats-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 16px;
    max-width: 760px;
}

@media (min-width: 640px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.stat-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px 10px;
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--fg);
}

.stat-label {
    display: block;
    margin-top: 2px;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 13px 28px;
    border-radius: 980px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    font-family: inherit;
    transition: box-shadow 0.15s, background 0.15s, border-color 0.15s, color 0.15s;
}

.btn-primary {
    background: var(--brand-teal);
    color: #ffffff;
    box-shadow: 0 6px 18px rgba(0, 113, 227, 0.28);
}

.btn-primary:hover {
    background: #0077ed;
    box-shadow: 0 8px 24px rgba(0, 113, 227, 0.36);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
}

.btn-outline {
    background: rgba(255, 255, 255, 0.55);
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
    color: var(--brand-teal-text);
    border: 1px solid var(--glass-edge);
    box-shadow: var(--glass-highlight), 0 4px 14px rgba(0, 0, 0, 0.06);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.8);
}

.btn-block {
    width: 100%;
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.85rem;
    background: var(--bg-elevated);
    color: var(--brand-teal-text);
    border: 1px solid var(--glass-edge);
}

.btn-tiny {
    padding: 6px 12px;
    font-size: 0.8rem;
    border-radius: 980px;
    border: 1px solid var(--border);
    background: var(--bg-elevated);
    color: var(--fg);
}

.btn-tiny:hover {
    border-color: var(--brand-green-text);
    color: var(--brand-green-text);
}

.btn-tiny-danger:hover {
    border-color: var(--brand-red);
    color: var(--brand-red);
}

/* Eyebrow (label kecil di atas tajuk seksyen) */
.eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--brand-orange-text);
    margin-bottom: 6px;
}

.eyebrow-center {
    display: block;
    text-align: center;
}

/* Category tiles */
.section-title {
    font-size: clamp(1.7rem, 3.4vw, 2.3rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin: 0 0 18px;
    color: var(--fg);
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.link-more {
    font-weight: 600;
    color: var(--brand-green);
    font-size: 0.9rem;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

@media (min-width: 640px) {
    .category-grid {
        grid-template-columns: repeat(5, 1fr);
    }
    .category-grid-3 {
        grid-template-columns: repeat(3, 1fr);
        max-width: 780px;
        margin: 0 auto;
    }
}

.category-tile {
    position: relative;
    isolation: isolate;
    padding: 28px 16px 24px;
    border-radius: var(--radius);
    text-align: center;
    font-weight: 700;
    color: var(--fg);
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-edge);
    box-shadow: var(--glass-highlight), 0 8px 28px rgba(0, 0, 0, 0.07);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.category-tile::before {
    content: '';
    position: absolute;
    z-index: 0;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.5), transparent 50%);
    pointer-events: none;
}

.category-tile > span {
    position: relative;
    z-index: 1;
}

.category-tile:hover {
    transform: translateY(-4px);
    box-shadow: var(--glass-highlight), 0 16px 40px rgba(0, 0, 0, 0.12);
}

.category-tile-icon {
    font-size: 2.4rem;
    line-height: 1;
}

.category-tile-label {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.category-tile-desc {
    max-width: 200px;
    font-size: 0.82rem;
    font-weight: 400;
    line-height: 1.45;
    color: #424245;
}

.category-tile-arrow {
    margin-top: 6px;
    padding: 6px 14px;
    border-radius: 980px;
    background: rgba(255, 255, 255, 0.65);
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--brand-teal-text);
    transition: background 0.2s;
}

.category-tile:hover .category-tile-arrow {
    background: rgba(255, 255, 255, 0.95);
}

/* Features (Kenapa Belanja) */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

@media (min-width: 780px) {
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.feature-card {
    background: var(--bg-elevated);
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-edge);
    border-radius: var(--radius);
    padding: 28px 20px;
    text-align: center;
    box-shadow: var(--glass-highlight), 0 8px 28px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--glass-highlight), 0 16px 40px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    width: 58px;
    height: 58px;
    border-radius: 16px;
    background: rgba(0, 113, 227, 0.1);
    margin-bottom: 14px;
}

.feature-title {
    margin: 0 0 6px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--fg);
}

.feature-desc {
    margin: 0;
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.5;
}

/* 3 Langkah Mudah */
.steps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 780px) {
    .steps-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.step-card {
    position: relative;
    background: var(--bg-elevated);
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-edge);
    border-radius: var(--radius);
    padding: 34px 22px 26px;
    text-align: center;
    box-shadow: var(--glass-highlight), 0 8px 28px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s, box-shadow 0.2s;
}

.step-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--glass-highlight), 0 16px 40px rgba(0, 0, 0, 0.1);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(0, 113, 227, 0.1);
    color: var(--brand-teal);
    font-weight: 700;
    font-size: 1.1rem;
    margin: 0 auto 16px;
}

/* CTA banner - kaca gelap sebagai aksen kontras */
.cta-banner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    text-align: center;
    background: rgba(29, 29, 31, 0.86);
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: 56px 36px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
}

.cta-banner::before {
    content: '';
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: rgba(0, 113, 227, 0.4);
    filter: blur(90px);
    top: -35%;
    right: -8%;
    pointer-events: none;
}

.cta-banner::after {
    content: '';
    position: absolute;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: rgba(191, 90, 242, 0.3);
    filter: blur(80px);
    bottom: -30%;
    left: -6%;
    pointer-events: none;
}

.cta-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 1;
}

.cta-emoji {
    font-size: 2.5rem;
}

.cta-title {
    margin: 0;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #f5f5f7;
    position: relative;
}

.cta-desc {
    margin: 0;
    color: rgba(245, 245, 247, 0.7);
    max-width: 460px;
    line-height: 1.5;
    position: relative;
}

/* Category color themes (kad produk & jubin kategori) */
.cat-makanan { background: linear-gradient(150deg, rgba(255, 214, 153, 0.55), rgba(255, 159, 10, 0.3)); }
.cat-pasir { background: linear-gradient(150deg, rgba(235, 240, 246, 0.6), rgba(142, 142, 147, 0.28)); }
.cat-mainan { background: linear-gradient(150deg, rgba(255, 204, 230, 0.55), rgba(255, 55, 95, 0.25)); }
.cat-aksesori { background: linear-gradient(150deg, rgba(255, 214, 214, 0.55), rgba(255, 59, 48, 0.25)); }
.cat-kesihatan { background: linear-gradient(150deg, rgba(200, 245, 215, 0.55), rgba(52, 199, 89, 0.3)); }
.cat-default { background: linear-gradient(150deg, rgba(200, 225, 255, 0.55), rgba(0, 113, 227, 0.22)); }

/* Product grid & card */
.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

@media (min-width: 640px) {
    .product-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 900px) {
    .product-grid { grid-template-columns: repeat(4, 1fr); }
}

.product-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-elevated);
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-edge);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--glass-highlight), 0 8px 28px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.product-card:hover {
    box-shadow: var(--glass-highlight), 0 16px 40px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

.product-thumb {
    position: relative;
    height: 164px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-thumb::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.34), transparent 55%);
    opacity: 1;
}

.product-emoji-wrap {
    position: relative;
    z-index: 1;
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.6rem;
    border: 1px solid var(--glass-edge);
    box-shadow: var(--glass-highlight), 0 10px 26px rgba(0, 0, 0, 0.1);
    transition: transform 0.25s ease;
}

.product-card:hover .product-emoji-wrap {
    transform: scale(1.08) rotate(-4deg);
}

.product-emoji {
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.18));
}

.product-thumb-photo {
    background: #ffffff;
}

.product-photo {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 12px;
    transition: transform 0.25s ease;
}

.product-card:hover .product-photo {
    transform: scale(1.04);
}

.stock-badge {
    position: absolute;
    z-index: 2;
    top: 12px;
    right: 12px;
    background: rgba(29, 29, 31, 0.78);
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 980px;
}

.product-body {
    padding: 16px 14px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.product-category {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--brand-orange-text);
}

.product-name {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--fg);
}

.product-price {
    margin: 4px 0 0;
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--fg);
}

/* Filter pills */
.filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
}

.pill {
    padding: 8px 18px;
    border-radius: 999px;
    border: 1px solid var(--border-strong);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--muted);
    background: var(--bg-elevated);
}

.pill-active {
    background: var(--fg);
    border-color: transparent;
    color: #ffffff;
}

.pill:not(.pill-active):hover {
    border-color: var(--border-strong);
    color: var(--fg);
}

.page-title {
    font-size: 1.7rem;
    font-weight: 800;
    margin: 0 0 6px;
    color: var(--fg);
}

.page-subtitle {
    color: var(--muted);
    margin: 0 0 20px;
}

.empty-state {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px;
    text-align: center;
    color: var(--muted);
}

/* Product detail page */
.breadcrumb {
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 20px;
}

.product-detail {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
}

@media (min-width: 640px) {
    .product-detail {
        grid-template-columns: 1fr 1fr;
    }
}

.product-detail-thumb {
    height: 320px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6.5rem;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.product-detail-photo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
}

.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

.product-gallery-thumbs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 2px 2px 6px;
}

.product-gallery-thumb {
    flex-shrink: 0;
    width: 68px;
    height: 68px;
    padding: 4px;
    border: 2px solid transparent;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    cursor: pointer;
    transition: border-color 0.15s, transform 0.15s;
}

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

.product-gallery-thumb.is-active {
    border-color: var(--brand-teal);
}

.product-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-detail-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.product-detail-body h1 {
    margin: 0;
    font-size: 1.6rem;
    color: var(--fg);
}

.product-detail-price {
    font-size: 1.9rem;
    font-weight: 800;
    margin: 0;
    color: var(--brand-green-text);
}

.product-detail-desc {
    color: var(--muted);
    line-height: 1.6;
    margin: 0;
}

.product-detail-desc p,
.product-directions p {
    margin: 0 0 10px;
}

.product-detail-desc ul,
.product-directions ul {
    margin: 0 0 10px;
    padding-left: 20px;
}

.product-detail-desc li,
.product-directions li {
    margin-bottom: 4px;
}

.product-detail-desc > :last-child,
.product-directions > :last-child {
    margin-bottom: 0;
}

.product-directions {
    padding: 16px 18px;
    border-radius: 16px;
    background: rgba(0, 113, 227, 0.06);
    border: 1px solid rgba(0, 113, 227, 0.14);
    color: var(--fg);
    line-height: 1.6;
    font-size: 0.95rem;
}

.product-directions h2 {
    margin: 0 0 8px;
    font-size: 1rem;
    font-weight: 700;
}

.add-to-cart-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
}

.qty-field {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--fg);
}

.qty-field input {
    width: 80px;
    padding: 8px;
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    background: var(--bg-elevated);
    color: var(--fg);
}

.stock-note {
    color: var(--muted);
    font-size: 0.85rem;
    margin: 0;
}

.button-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Alerts */
.alert {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid transparent;
}

.alert-success {
    background: rgba(56, 161, 105, 0.10);
    color: var(--brand-green-text);
    border-color: rgba(56, 161, 105, 0.28);
}

.alert-error {
    background: rgba(229, 62, 62, 0.10);
    color: var(--brand-red);
    border-color: rgba(229, 62, 62, 0.28);
}

.alert-warning {
    background: rgba(250, 204, 21, 0.14);
    color: #8a5a00;
    border-color: rgba(250, 204, 21, 0.4);
}

.shop-notice {
    padding: 10px 0;
    font-size: 0.9rem;
    line-height: 1.5;
    text-align: center;
}

.shop-notice p {
    margin: 0;
}

.shop-notice-closed {
    background: #fff4e5;
    color: #8a3c00;
    border-bottom: 1px solid rgba(255, 159, 10, 0.35);
}

.shop-notice-upcoming {
    background: #eef6ff;
    color: #0b4f99;
    border-bottom: 1px solid rgba(0, 113, 227, 0.25);
}

.shop-notice .shop-notice-note {
    margin-top: 2px;
    font-weight: 600;
}

.alert-muted {
    background: var(--bg-elevated);
    color: var(--muted);
    border-color: var(--border);
}

/* Cart page */
.empty-cart {
    text-align: center;
    padding: 60px 20px;
}

.empty-cart-emoji {
    font-size: 3rem;
    margin: 0;
}

.cart-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cart-row {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px;
    flex-wrap: wrap;
}

.cart-thumb {
    width: 64px;
    height: 64px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.9rem;
    flex-shrink: 0;
    overflow: hidden;
}

.cart-photo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
}

.cart-info {
    flex: 1;
    min-width: 140px;
}

.cart-name {
    margin: 0;
    font-weight: 600;
    color: var(--fg);
}

.cart-unit-price {
    margin: 2px 0 0;
    font-size: 0.85rem;
    color: var(--muted);
}

.cart-variant {
    margin: 2px 0 0;
    font-size: 0.82rem;
    color: var(--fg);
}

/* Pilihan variasi di halaman produk */
.variant-picker {
    border: none;
    margin: 4px 0 6px;
    padding: 0;
}

.variant-picker legend {
    padding: 0;
    margin-bottom: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--muted);
}

.variant-picker legend strong {
    color: var(--fg);
}

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

.variant-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.variant-option > span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid var(--border-strong);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.7);
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.variant-option > span img {
    width: 28px;
    height: 28px;
    object-fit: cover;
    border-radius: 6px;
}

.variant-option > span small {
    font-size: 0.72rem;
    color: var(--muted);
}

.variant-option input:checked + span {
    border-color: var(--brand-teal);
    background: rgba(0, 113, 227, 0.08);
    box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.14);
    color: var(--brand-teal-text);
}

.variant-option input:focus-visible + span {
    outline: 2px solid var(--brand-teal);
    outline-offset: 2px;
}

.variant-option.is-soldout > span {
    opacity: 0.45;
    cursor: not-allowed;
    text-decoration: line-through;
}

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

.qty-form input {
    width: 60px;
    padding: 6px;
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    text-align: center;
    background: var(--bg-elevated);
    color: var(--fg);
}

.cart-line-total {
    width: 90px;
    text-align: right;
    font-weight: 700;
    margin: 0;
    color: var(--fg);
}

.cart-remove {
    background: none;
    border: none;
    font-size: 1.3rem;
    color: var(--muted);
    cursor: pointer;
}

.cart-remove:hover {
    color: var(--brand-red);
}

.cart-summary {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.cart-total {
    font-size: 1.1rem;
    margin: 0;
    color: var(--fg);
}

/* Checkout */
.checkout-summary {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
}

.checkout-summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--muted);
}

.checkout-summary-row a {
    font-weight: 600;
    color: var(--brand-green-text);
}

.checkout-summary-total {
    margin: 8px 0 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--fg);
}

.checkout-summary-note {
    margin: 2px 0 0;
    font-size: 0.8rem;
    color: var(--muted);
}

.checkout-form,
.admin-form,
.admin-login-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--fg);
}

.field input,
.field select,
.field textarea {
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 400;
    padding: 11px 14px;
    border: 1px solid var(--border-strong);
    border-radius: 12px;
    color: var(--fg);
    background: rgba(255, 255, 255, 0.75);
    transition: border-color 0.15s, box-shadow 0.15s;
}

.field select option {
    background: var(--bg-elevated-2);
    color: var(--fg);
}

.field textarea {
    min-height: 90px;
    resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
    color: #6b7490;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--brand-teal);
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.18);
}

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.field-hint {
    font-size: 0.78rem;
    font-weight: 400;
    color: var(--muted);
}

.field .image-upload-input {
    cursor: pointer;
}

.field-count {
    margin-left: 6px;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--muted);
}

.image-gallery-edit {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
    gap: 10px;
}

.image-gallery-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.7);
}

.image-gallery-item:has(input[name="cover"]:checked) {
    border-color: var(--brand-teal);
    box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.14);
}

.image-gallery-item:has(.image-gallery-remove input:checked) img {
    opacity: 0.35;
}

.image-gallery-item img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
    padding: 4px;
    border-radius: 10px;
    background: #ffffff;
    transition: opacity 0.15s;
}

.image-gallery-option {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
}

.field .image-gallery-option input {
    width: auto;
    margin: 0;
    padding: 0;
    box-shadow: none;
    accent-color: var(--brand-teal);
}

.image-gallery-remove {
    color: #d70015;
}

.field .image-gallery-remove input {
    accent-color: var(--brand-red);
}

.required {
    color: var(--brand-red);
}

.form-note {
    text-align: center;
    font-size: 0.75rem;
    color: #6b7490;
    margin: 0;
}

/* Pilihan kurier di checkout */
.shipping-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.shipping-hint {
    margin: 0;
    padding: 12px 14px;
    border: 1px dashed var(--border-strong);
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--muted);
}

.shipping-hint.shipping-error {
    border-style: solid;
    border-color: rgba(255, 59, 48, 0.35);
    background: rgba(255, 59, 48, 0.06);
    color: #b3261e;
}

.shipping-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border: 1px solid var(--border-strong);
    border-radius: 12px;
    background: var(--bg-elevated);
    font-weight: 400;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.shipping-option:has(input:checked) {
    border-color: var(--brand-teal);
    background: rgba(0, 113, 227, 0.06);
    box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.12);
}

.field .shipping-option input {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin: 0;
    padding: 0;
    box-shadow: none;
    accent-color: var(--brand-teal);
}

.shipping-logo {
    flex-shrink: 0;
    width: 48px;
    height: 28px;
    object-fit: contain;
}

.shipping-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    font-size: 0.9rem;
}

.shipping-info small {
    font-size: 0.75rem;
    color: var(--muted);
}

.shipping-price {
    font-weight: 700;
    white-space: nowrap;
    color: var(--fg);
}

.checkout-totals {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px 16px;
    border-radius: 12px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    font-size: 0.9rem;
}

.checkout-totals > div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: var(--muted);
}

.checkout-totals .checkout-totals-grand {
    padding-top: 8px;
    border-top: 1px solid var(--border);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--fg);
}

/* Order status page */
.order-status-header {
    text-align: center;
    margin-bottom: 24px;
}

.order-status-label {
    color: var(--muted);
    margin: 0;
    font-size: 0.85rem;
}

.order-status-header h1 {
    margin: 4px 0 12px;
    color: var(--fg);
}

.status-badge {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.85rem;
}

.status-pending { background: rgba(237, 137, 54, 0.14); color: #c05621; }
.status-paid { background: rgba(56, 161, 105, 0.14); color: var(--brand-green-text); }
.status-failed { background: rgba(229, 62, 62, 0.14); color: var(--brand-red); }

.order-status-note {
    margin: 10px 0 0;
    font-size: 0.8rem;
    color: #6b7490;
}

.card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 16px;
}

.card h2 {
    margin: 0 0 12px;
    font-size: 1.05rem;
    color: var(--fg);
}

.order-line {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    padding: 4px 0;
    color: var(--muted);
}

.order-line-total {
    border-top: 1px solid var(--border);
    margin-top: 8px;
    padding-top: 10px;
    font-weight: 700;
    color: var(--fg);
}

/* About page */
.about-logo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 20px;
    box-shadow: 0 0 0 6px rgba(15, 23, 42, 0.05), 0 12px 30px rgba(15, 23, 42, 0.15);
}

.about-logo + h1 {
    margin-bottom: 16px;
    color: var(--fg);
}

/* --------------------------------------------------------------------- */
/* Admin (panel pekerja)                                                  */
/* --------------------------------------------------------------------- */

/* Sidebar layout */
.admin-shell {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 240px;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.5);
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
    border-right: 1px solid var(--glass-edge);
    box-shadow: 1px 0 0 var(--border);
    display: flex;
    flex-direction: column;
    gap: 28px;
    padding: 22px 14px;
    position: sticky;
    top: 0;
    align-self: flex-start;
    height: 100vh;
    overflow-y: auto;
}

.admin-content {
    flex: 1;
    min-width: 0;
}

.admin-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--fg);
    padding: 4px 8px;
}

.admin-brand-logo {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    object-fit: contain;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
}

.admin-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.admin-brand-text strong {
    font-size: 0.95rem;
    font-weight: 700;
}

.admin-brand-text small {
    font-size: 0.72rem;
    color: var(--muted);
}

.admin-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #424245;
}

.admin-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    transition: background 0.15s, color 0.15s;
}

.admin-nav-icon {
    width: 22px;
    text-align: center;
    font-size: 1rem;
}

.admin-nav-badge {
    margin-left: auto;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(255, 159, 10, 0.18);
    color: #c93400;
    font-size: 0.68rem;
    font-weight: 700;
    white-space: nowrap;
}

.admin-nav-badge-closed {
    background: rgba(255, 59, 48, 0.14);
    color: #d70015;
}

.admin-nav a:hover {
    color: var(--fg);
    background: rgba(0, 0, 0, 0.05);
}

.admin-nav-active,
.admin-nav-active:hover {
    color: #ffffff !important;
    background: var(--brand-teal) !important;
    box-shadow: 0 4px 12px rgba(0, 113, 227, 0.28);
}

.admin-nav-footer {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.admin-nav-divider {
    border: 0;
    border-top: 1px solid var(--border-strong);
    margin: 6px 12px;
}

.admin-nav-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.admin-nav-group-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px 4px;
    font-weight: 600;
}

.admin-nav a.admin-nav-sub {
    padding: 8px 12px 8px 26px;
    font-size: 0.86rem;
}

.admin-nav-sub .admin-nav-icon {
    font-size: 0.9rem;
}

.admin-logout:hover {
    color: var(--brand-red) !important;
    background: rgba(255, 59, 48, 0.1) !important;
}

.admin-main {
    padding: 32px 28px 48px;
}

@media (max-width: 780px) {
    .admin-shell {
        flex-direction: column;
    }

    .admin-sidebar {
        width: auto;
        height: auto;
        position: sticky;
        z-index: 20;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 12px 14px;
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

    .admin-nav {
        flex-direction: row;
        overflow-x: auto;
        gap: 6px;
        font-size: 0.85rem;
    }

    .admin-nav a {
        flex-shrink: 0;
        padding: 8px 12px;
    }

    .admin-nav-footer {
        margin-top: 0;
        flex-shrink: 0;
        flex-direction: row;
        gap: 6px;
    }

    .admin-nav-divider {
        align-self: stretch;
        border-top: 0;
        border-left: 1px solid var(--border-strong);
        margin: 4px 2px;
    }

    .admin-nav-group {
        flex-direction: row;
        gap: 6px;
    }

    .admin-nav-group-label {
        display: none;
    }

    .admin-nav a.admin-nav-sub {
        padding: 8px 12px;
        font-size: 0.85rem;
    }

    .admin-main {
        padding: 22px 16px 40px;
    }
}

.admin-page-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 22px;
    flex-wrap: wrap;
    gap: 12px;
}

.admin-page-head h1 {
    margin: 0;
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--fg);
}

.admin-page-sub {
    margin: 4px 0 0;
    font-size: 0.9rem;
    color: var(--muted);
}

.admin-back {
    display: inline-block;
    margin-bottom: 6px;
    font-size: 0.85rem;
    color: var(--brand-teal-text);
}

.admin-back:hover {
    text-decoration: underline;
}

/* Kad statistik ringkas */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 22px;
}

@media (min-width: 900px) {
    .admin-stats {
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
    }
}

.admin-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 18px;
    border-radius: 20px;
    background: var(--bg-elevated);
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-edge);
    box-shadow: var(--glass-highlight), 0 8px 24px rgba(0, 0, 0, 0.05);
}

.admin-stat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin-bottom: 6px;
    border-radius: 11px;
    background: rgba(0, 113, 227, 0.1);
    font-size: 1.05rem;
}

.admin-stat-label {
    font-size: 0.8rem;
    color: var(--muted);
}

.admin-stat-value {
    font-size: 1.55rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--fg);
}

.admin-table-wrap {
    background: var(--bg-elevated);
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-edge);
    border-radius: 20px;
    overflow-x: auto;
    box-shadow: var(--glass-highlight), 0 8px 28px rgba(0, 0, 0, 0.06);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.admin-table th {
    text-align: left;
    background: rgba(255, 255, 255, 0.55);
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
    padding: 13px 18px;
    border-bottom: 1px solid var(--border);
}

.admin-table td {
    padding: 14px 18px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    vertical-align: middle;
    color: var(--fg);
}

.admin-table tbody tr:first-child td {
    border-top: none;
}

.admin-table tbody tr:hover td {
    background: rgba(255, 255, 255, 0.5);
}

.table-strong {
    font-weight: 600;
}

.table-sub {
    display: block;
    margin-top: 2px;
    font-size: 0.78rem;
    color: var(--muted);
}

.table-item {
    margin-top: 0;
    white-space: nowrap;
}

.table-nowrap {
    white-space: nowrap;
}

.table-ok {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--brand-green-text);
}

.admin-table td.table-empty {
    padding: 56px 20px;
    text-align: center;
    color: var(--muted);
}

.admin-table tbody tr:hover td.table-empty {
    background: none;
}

.table-empty strong {
    display: block;
    margin-bottom: 4px;
    font-size: 1rem;
    color: var(--fg);
}

.table-empty-icon {
    display: block;
    margin-bottom: 10px;
    font-size: 2.2rem;
    opacity: 0.7;
}

/* Dashboard */
.admin-stat-foot {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 8px;
    margin-top: 2px;
    font-size: 0.78rem;
    color: var(--muted);
}

.admin-stat-highlight {
    background: linear-gradient(145deg, rgba(0, 113, 227, 0.14), rgba(255, 255, 255, 0.62) 60%);
}

.trend-up {
    font-weight: 600;
    color: var(--brand-green-text);
}

.trend-down {
    font-weight: 600;
    color: #d70015;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

@media (min-width: 900px) {
    .dashboard-grid {
        grid-template-columns: 1.6fr 1fr;
    }
}

.admin-panel {
    padding: 20px 22px;
    border-radius: 20px;
    background: var(--bg-elevated);
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-edge);
    box-shadow: var(--glass-highlight), 0 8px 28px rgba(0, 0, 0, 0.06);
}

.admin-panel-flush {
    padding: 20px 0 0;
    overflow: hidden;
}

.admin-panel-flush .admin-panel-head {
    padding: 0 22px;
}

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

.admin-panel-head h2 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--fg);
}

.admin-panel-link {
    font-size: 0.85rem;
    color: var(--brand-teal-text);
    white-space: nowrap;
}

.admin-panel-link:hover {
    text-decoration: underline;
}

.admin-table-scroll {
    overflow-x: auto;
    border-top: 1px solid var(--border);
}

.sales-chart {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    align-items: end;
}

.sales-chart-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.sales-chart-value {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--muted);
}

.sales-chart-track {
    display: flex;
    align-items: flex-end;
    width: 100%;
    max-width: 44px;
    height: 170px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

.sales-chart-bar {
    width: 100%;
    border-radius: 12px;
    background: linear-gradient(180deg, #2997ff, var(--brand-teal));
}

.sales-chart-col:last-child .sales-chart-bar {
    background: linear-gradient(180deg, var(--brand-green-light), var(--brand-green-text));
}

.sales-chart-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--fg);
    white-space: nowrap;
}

.sales-chart-date {
    margin-top: -4px;
    font-size: 0.68rem;
    color: var(--muted);
}

.admin-panel-note {
    font-size: 0.78rem;
    color: var(--muted);
    white-space: nowrap;
}

.top-products {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.top-product {
    display: flex;
    align-items: center;
    gap: 12px;
}

.top-product-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.06);
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--muted);
}

.top-product-rank-1 { background: linear-gradient(145deg, #ffd60a, #ff9f0a); color: #ffffff; }
.top-product-rank-2 { background: linear-gradient(145deg, #d1d1d6, #8e8e93); color: #ffffff; }
.top-product-rank-3 { background: linear-gradient(145deg, #e8a87c, #b86b3c); color: #ffffff; }

.top-product-thumb {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    padding: 3px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid var(--border);
    object-fit: contain;
    font-size: 1.4rem;
}

.top-product-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
    min-width: 0;
}

.top-product-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--fg);
}

.top-product-meta {
    font-size: 0.75rem;
    color: var(--muted);
}

.top-product-bar {
    height: 5px;
    border-radius: 980px;
    background: rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.top-product-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--brand-teal), #2997ff);
}

.top-products .top-products-empty {
    display: block;
    padding: 40px 0;
    text-align: center;
    font-size: 0.88rem;
    color: var(--muted);
}

.low-stock-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.low-stock-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 0.88rem;
}

.low-stock-list li:first-child {
    border-top: none;
    padding-top: 0;
}

.low-stock-name {
    display: flex;
    align-items: center;
    min-width: 0;
    font-weight: 500;
    color: var(--fg);
}

.low-stock-list .low-stock-empty {
    justify-content: center;
    padding: 36px 0;
    color: var(--muted);
}

.table-emoji {
    margin-right: 6px;
}

.table-photo {
    display: inline-block;
    vertical-align: middle;
    width: 36px;
    height: 36px;
    margin-right: 8px;
    object-fit: contain;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid var(--border);
}

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

.text-right {
    text-align: right;
}

.status-pill {
    display: inline-block;
    border: none;
    padding: 5px 12px;
    border-radius: 980px;
    font-family: inherit;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

button.status-pill {
    cursor: pointer;
}

.status-pill-active { background: rgba(52, 199, 89, 0.15); color: var(--brand-green-text); }
.status-pill-hidden { background: rgba(142, 142, 147, 0.16); color: var(--muted); }
.status-pill-pending { background: rgba(255, 159, 10, 0.16); color: #c93400; }
.status-pill-failed { background: rgba(255, 59, 48, 0.12); color: #d70015; }
.status-pill-shipped { background: rgba(0, 113, 227, 0.12); color: var(--brand-teal-text); }

.ship-cell {
    min-width: 190px;
}

.ship-cell > * + * {
    margin-top: 4px;
}

.ship-cell .table-sub {
    display: block;
}

.ship-tracking {
    display: block;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--brand-teal-text);
}

.ship-form {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ship-form select,
.ship-form input {
    width: 100%;
    font-family: inherit;
    font-size: 0.8rem;
    padding: 7px 10px;
    border: 1px solid var(--border-strong);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.8);
    color: var(--fg);
}

.ship-form select:focus,
.ship-form input:focus {
    outline: none;
    border-color: var(--brand-teal);
    box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.16);
}

.ship-edit summary {
    cursor: pointer;
    font-size: 0.78rem;
    color: var(--brand-teal-text);
}

.ship-edit[open] summary {
    margin-bottom: 6px;
}

/* Admin: Pesanan (padat, tanpa scroll mendatar) */
.orders-table-wrap {
    overflow: hidden;
}

.orders-table {
    table-layout: fixed;
    font-size: 0.84rem;
}

.orders-col-no { width: 128px; }
.orders-col-customer { width: 28%; }
.orders-col-total { width: 104px; }
.orders-col-ship { width: 200px; }

.orders-filter {
    display: flex;
    gap: 6px;
    margin-bottom: 14px;
    overflow-x: auto;
    scrollbar-width: none;
}

.orders-filter::-webkit-scrollbar {
    display: none;
}

.orders-filter-tab {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--muted);
}

.orders-filter-tab span {
    min-width: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.06);
    font-size: 0.72rem;
    text-align: center;
}

.orders-filter-tab:hover {
    color: var(--fg);
}

.orders-filter-tab.is-urgent span {
    background: #ff9f0a;
    color: #ffffff;
}

.orders-filter-tab.is-active {
    border-color: transparent;
    background: var(--brand-teal);
    color: #ffffff;
}

.orders-filter-tab.is-active span {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

.orders-table th {
    padding: 9px 12px;
}

.orders-table td {
    padding: 10px 12px;
    vertical-align: top;
    overflow-wrap: anywhere;
    line-height: 1.4;
}

.orders-table .table-strong {
    display: block;
}

.orders-table .table-sub {
    display: block;
    font-size: 0.76rem;
}

.orders-table .status-pill {
    margin-top: 4px;
    padding: 3px 9px;
    font-size: 0.7rem;
}

.orders-row-unpaid td {
    background: rgba(0, 0, 0, 0.015);
}

.orders-row-unpaid .orders-no,
.orders-row-unpaid .orders-customer .table-strong {
    color: var(--muted);
}

.orders-no {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.8rem;
}

.orders-customer {
    display: flex;
    align-items: center;
    gap: 6px;
}

.orders-customer .table-strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.orders-email {
    word-break: break-all;
}

.orders-address {
    display: block;
    margin-top: 3px;
    font-size: 0.76rem;
    line-height: 1.4;
    color: var(--fg);
    opacity: 0.85;
    overflow-wrap: anywhere;
}

.orders-copy {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 1px solid var(--border-strong);
    border-radius: 7px;
    background: transparent;
    font-size: 0.72rem;
    line-height: 1;
    cursor: pointer;
}

.orders-copy:hover {
    border-color: var(--fg);
    background: rgba(0, 0, 0, 0.04);
}

.orders-check-pay {
    margin-top: 4px;
}

.orders-link-btn {
    padding: 0;
    border: none;
    background: none;
    font-family: inherit;
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--brand-teal-text);
    cursor: pointer;
}

.orders-link-btn:hover {
    text-decoration: underline;
}

.orders-invoice-link {
    color: var(--brand-teal-text);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    text-decoration: none;
}

.orders-invoice-link:hover {
    text-decoration: underline;
}

.order-invoice-btn {
    margin-top: 14px;
}

.invoice-logo-field {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 14px;
}

.invoice-logo-preview {
    max-width: 160px;
    max-height: 72px;
    padding: 6px;
    border: 1px solid var(--border-strong);
    border-radius: 10px;
    background: #fff;
    object-fit: contain;
}

.invoice-logo-inputs {
    display: flex;
    flex: 1 1 220px;
    flex-direction: column;
    gap: 6px;
}

.invoice-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.invoice-filter select,
.invoice-filter input[type="search"] {
    padding: 8px 12px;
    border: 1px solid var(--border-strong);
    border-radius: 10px;
    font: inherit;
    font-size: 0.88rem;
    background: #fff;
}

.invoice-filter input[type="search"] {
    flex: 1 1 220px;
}

.orders-cancel {
    margin-top: 4px;
}

.orders-cancel summary {
    cursor: pointer;
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--brand-red);
}

.orders-cancel form {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 6px;
}

.orders-cancel input[type="text"] {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    font: inherit;
    font-size: 0.78rem;
}

.orders-cancel .btn {
    align-self: flex-start;
}

.orders-cancel-reason {
    color: var(--brand-red);
}

.orders-item {
    display: block;
    font-size: 0.8rem;
    line-height: 1.4;
}

.orders-item + .orders-item {
    margin-top: 4px;
}

.ship-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 8px;
}

.ship-head .status-pill {
    margin-top: 0;
}

.orders-table .ship-cell {
    min-width: 0;
}

@media (max-width: 860px) {
    .orders-table,
    .orders-table tbody,
    .orders-table tr,
    .orders-table td {
        display: block;
        width: 100%;
    }
    .orders-table colgroup,
    .orders-table thead {
        display: none;
    }
    .orders-table tr {
        padding: 6px 0;
        border-top: 1px solid var(--border);
    }
    .orders-table tbody tr:first-child {
        border-top: none;
    }
    .orders-table td {
        display: grid;
        grid-template-columns: 96px minmax(0, 1fr);
        column-gap: 12px;
        border-top: none;
        padding: 6px 16px;
    }
    .orders-table td > * {
        grid-column: 2;
    }
    .orders-table td::before {
        content: attr(data-label);
        grid-column: 1;
        grid-row: 1 / span 6;
        font-size: 0.7rem;
        font-weight: 600;
        letter-spacing: 0.04em;
        text-transform: uppercase;
        color: var(--muted);
        padding-top: 2px;
    }
    .orders-table td.table-empty {
        display: block;
    }
    .orders-table td.table-empty::before {
        content: none;
    }
    .orders-table .status-pill {
        justify-self: start;
    }
}

.ship-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.ship-track-status .status-pill {
    margin-right: 4px;
    padding: 2px 8px;
    font-size: 0.68rem;
}

/* Admin: status penghantaran (tracking) */
.track-current {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 14px;
    margin-bottom: 18px;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.03);
}

.track-current strong {
    font-size: 1rem;
}

.track-timeline {
    list-style: none;
    margin: 0;
    padding: 0;
}

.track-timeline li {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 0 0 18px 26px;
    font-size: 0.88rem;
}

.track-timeline li::before {
    content: '';
    position: absolute;
    left: 5px;
    top: 5px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border-strong);
}

.track-timeline li:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 9px;
    top: 17px;
    bottom: 0;
    width: 2px;
    background: var(--border);
}

.track-timeline li.is-latest::before {
    background: var(--brand-teal);
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.18);
}

.track-timeline li.is-latest strong {
    color: var(--brand-teal);
}

/* Admin: Tempah EasyParcel */
.ep-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
    gap: 20px;
    align-items: start;
}

.ep-address {
    margin: 0 0 14px;
    line-height: 1.6;
    font-size: 0.9rem;
}

.ep-items {
    list-style: none;
    margin: 0;
    padding: 12px 0 0;
    border-top: 1px solid var(--border-strong);
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.88rem;
}

.ep-items li {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.ep-parcel-form,
.ep-quotes-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ep-parcel-form .btn,
.ep-quotes-form .btn {
    align-self: flex-start;
}

.ep-quotes-form {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--border-strong);
}

.ep-quotes {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ep-quote {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid var(--border-strong);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.ep-quote:has(input:checked) {
    border-color: var(--brand-teal);
    background: rgba(0, 113, 227, 0.08);
    box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.14);
}

.ep-quote input {
    accent-color: var(--brand-teal);
}

.ep-quote-logo {
    width: 56px;
    height: 32px;
    object-fit: contain;
}

.ep-quote-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.ep-quote-info small {
    font-size: 0.76rem;
    color: var(--muted);
}

.ep-quote-price {
    font-weight: 700;
    white-space: nowrap;
}

.ep-customer-pick {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(52, 199, 89, 0.15);
    color: var(--brand-green-text);
    font-size: 0.7rem;
    font-weight: 600;
    vertical-align: middle;
}

.ep-customer-paid {
    margin: 0 0 12px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(52, 199, 89, 0.1);
    font-size: 0.85rem;
}

.ep-booked {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.ep-cancel {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border-strong);
}

.ep-cancel summary {
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--brand-red);
}

.ep-cancel-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 12px;
}

.cancel-scope {
    display: grid;
    gap: 8px;
}

.cancel-scope-option {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid var(--border-strong);
    border-radius: 12px;
    cursor: pointer;
}

.cancel-scope-option:has(input:checked) {
    border-color: var(--brand-red);
    background: #fef2f2;
}

.cancel-scope-option input {
    margin-top: 3px;
}

.cancel-scope-option span {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 0.85rem;
}

.cancel-scope-option small {
    color: var(--text-muted, #6b7280);
    font-size: 0.78rem;
}

.btn-danger {
    align-self: flex-start;
    background: var(--brand-red);
    border-color: var(--brand-red);
    color: #fff;
}

.btn-danger:hover {
    filter: brightness(0.92);
    color: #fff;
}

.ep-booked > div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

@media (max-width: 860px) {
    .ep-grid { grid-template-columns: 1fr; }
}

.admin-form {
    background: var(--bg-elevated);
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-edge);
    border-radius: 22px;
    padding: 28px;
    max-width: 640px;
    box-shadow: var(--glass-highlight), 0 8px 28px rgba(0, 0, 0, 0.06);
}

/* Admin: Tetapan */
.settings-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.settings-title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.settings-form .alert {
    margin: 0;
}

.settings-mode {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

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

.settings-mode-option {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid var(--border-strong);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.settings-mode-option:has(input:checked) {
    border-color: var(--brand-teal);
    background: rgba(0, 113, 227, 0.08);
    box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.14);
}

.field .settings-mode-option input {
    width: auto;
    margin: 3px 0 0;
    padding: 0;
    box-shadow: none;
    accent-color: var(--brand-teal);
}

.settings-mode-option span {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.settings-mode-option small {
    font-size: 0.78rem;
    font-weight: 400;
    color: var(--muted);
}

.settings-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.04);
}

.settings-info-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.settings-info-label {
    font-size: 0.8rem;
    color: var(--muted);
}

.settings-info code {
    font-size: 0.82rem;
    word-break: break-all;
    color: var(--fg);
}

.settings-form .btn {
    align-self: flex-start;
}

.settings-skip {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 159, 10, 0.1);
    border: 1px solid rgba(255, 159, 10, 0.3);
    font-size: 0.85rem;
    cursor: pointer;
}

.settings-skip input {
    margin-top: 3px;
    accent-color: var(--brand-teal);
}

.pay-channels {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pay-channel {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid var(--border-strong);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}

.pay-channel:has(input:checked) {
    border-color: var(--brand-teal);
    background: rgba(0, 113, 227, 0.06);
}

.pay-channel:has(input:disabled) {
    cursor: default;
}

.admin-form .pay-channel input {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin: 2px 0 0;
    padding: 0;
    box-shadow: none;
    accent-color: var(--brand-teal);
}

.pay-channel span {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.pay-channel small {
    font-size: 0.78rem;
    line-height: 1.45;
    color: var(--muted);
}

.settings-stack {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.settings-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.settings-subtitle {
    margin: 6px 0 0;
    font-size: 0.95rem;
    font-weight: 700;
}

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

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

[hidden] {
    display: none !important;
}

/* Admin: variasi produk */
.variation-toggle {
    display: flex;
    align-items: center;
    gap: 14px;
}

.variation-toggle strong {
    display: block;
    font-size: 0.95rem;
}

.variation-toggle small {
    font-size: 0.8rem;
    color: var(--muted);
}

.switch {
    position: relative;
    flex-shrink: 0;
    width: 46px;
    height: 26px;
    cursor: pointer;
}

.switch input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.switch-track {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: rgba(120, 120, 128, 0.32);
    transition: background 0.2s;
}

.switch-track::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s;
}

.switch input:checked + .switch-track {
    background: #14a39a;
}

.switch input:checked + .switch-track::after {
    transform: translateX(20px);
}

.switch input:focus-visible + .switch-track {
    outline: 2px solid var(--brand-teal);
    outline-offset: 2px;
}

.variation-box {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 18px;
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.035);
}

.variation-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.variation-option {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.field .variation-option input[type="text"] {
    flex: 1;
    min-width: 0;
    padding-right: 64px;
}

.variation-count {
    position: absolute;
    right: 52px;
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--muted);
    background: rgba(0, 0, 0, 0.05);
    padding: 2px 6px;
    border-radius: 6px;
}

.variation-delete {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 10px;
    background: transparent;
    font-size: 1rem;
    cursor: pointer;
    opacity: 0.6;
}

.variation-delete:hover {
    opacity: 1;
    background: rgba(255, 59, 48, 0.1);
}

.variation-add {
    align-self: flex-start;
    border: none;
    background: none;
    padding: 4px 0;
    font: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--brand-teal-text);
    cursor: pointer;
}

.variation-bulk {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.variation-bulk > input,
.variation-bulk .input-rm {
    flex: 1;
    min-width: 120px;
}

.input-rm {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-strong);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.75);
    overflow: hidden;
}

.input-rm span {
    padding: 0 0 0 12px;
    font-size: 0.85rem;
    color: var(--muted);
}

.field .input-rm input,
.input-rm input {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    box-shadow: none;
}

.input-rm:focus-within {
    border-color: var(--brand-teal);
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.18);
}

.field .input-rm input:focus {
    box-shadow: none;
}

.variation-bulk > input {
    font: inherit;
    font-size: 0.95rem;
    padding: 11px 14px;
    border: 1px solid var(--border-strong);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.75);
}

.variation-table-wrap {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.6);
}

.variation-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.variation-table th {
    text-align: left;
    padding: 10px 12px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--muted);
    background: rgba(0, 0, 0, 0.03);
    white-space: nowrap;
}

.variation-table td {
    padding: 10px 12px;
    border-top: 1px solid var(--border);
    vertical-align: middle;
}

.variation-table td input {
    width: 100%;
    min-width: 80px;
}

.variation-table td:first-child {
    min-width: 180px;
}

.variation-table td:last-child,
.variation-table th:last-child {
    width: 44px;
    padding-left: 0;
}

.variation-cell-name {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
}

.variation-image {
    position: relative;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border: 1px dashed var(--border-strong);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    overflow: hidden;
}

.variation-image input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.variation-image img {
    display: none;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.variation-image.has-image img {
    display: block;
}

.variation-image.has-image span {
    display: none;
}

.variation-image span {
    font-size: 1.1rem;
    color: var(--muted);
}

.field-row > .field {
    min-width: 0;
}

.field-row select {
    width: 100%;
    min-width: 0;
    text-overflow: ellipsis;
}

.settings-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.settings-actions form {
    margin: 0;
}

.settings-locked {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 28px 20px;
    border-radius: 16px;
    background: rgba(52, 199, 89, 0.1);
    border: 1px solid rgba(52, 199, 89, 0.25);
    text-align: center;
}

.settings-locked-icon {
    font-size: 2rem;
    line-height: 1;
}

.settings-locked strong {
    font-size: 1.05rem;
}

.settings-locked span:last-child {
    font-size: 0.9rem;
    color: var(--muted);
}

@media (max-width: 640px) {
    .settings-mode,
    .settings-mode.shop-mode {
        grid-template-columns: 1fr;
    }

    .settings-form .btn {
        align-self: stretch;
    }
}

/* Admin login */
.admin-login-body {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: radial-gradient(circle at 15% 10%, rgba(0, 113, 227, 0.2), transparent 55%),
                radial-gradient(circle at 85% 20%, rgba(191, 90, 242, 0.16), transparent 55%),
                radial-gradient(circle at 50% 100%, rgba(52, 199, 89, 0.16), transparent 55%),
                var(--bg);
}

.admin-login-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 36px;
    width: 100%;
    max-width: 380px;
    text-align: center;
    box-shadow: var(--shadow);
}

.admin-login-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 18px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--muted);
}

.admin-login-back:hover {
    color: var(--brand-green-text);
}

.admin-login-logo {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    margin: 0 auto 14px;
    box-shadow: 0 0 0 4px rgba(15, 23, 42, 0.06);
}

.admin-login-card h1 {
    margin: 0 0 6px;
    font-size: 1.2rem;
    color: var(--fg);
}

.admin-login-note {
    color: var(--muted);
    font-size: 0.8rem;
    margin: 0 0 20px;
}

.admin-login-form .field {
    text-align: left;
}

@media (max-width: 640px) {
    body { background-attachment: scroll; }
    .container { padding: 0 16px; }
    .section { padding: 44px 0; }
    .field-row { grid-template-columns: 1fr; }
    .field-row-4 { grid-template-columns: 1fr 1fr; }

    /* Header: baris 1 = logo + menu, baris 2 = tiga butang sama lebar */
    .header-inner { flex-wrap: wrap; gap: 10px 8px; padding: 10px 16px; }
    .brand { gap: 8px; }
    .brand-logo { width: 34px; height: 34px; }
    .brand-name { font-size: 1.05rem; }
    .main-nav { margin-left: auto; gap: 2px; font-size: 0.85rem; }
    .main-nav a { padding: 6px 10px; }
    .nav-actions { width: 100%; margin-left: 0; gap: 8px; }
    .nav-actions > a {
        flex: 1;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 9px 6px !important;
        font-size: 0.82rem;
        white-space: nowrap;
    }

    /* Hero: banner dulu, teks & butang penuh lebar */
    .hero-inner { padding: 24px 16px 44px; gap: 36px; }
    .hero-float-chip { left: 50%; bottom: -16px; transform: translateX(-50%); white-space: nowrap; font-size: 0.75rem; padding: 8px 14px; }
    .top-product-float { right: 10px; bottom: 12px; gap: 6px; }
    .top-product-float-img { height: 104px; }
    .top-product-float-label { margin-bottom: 12px; padding: 6px 11px; font-size: 0.7rem; }
    .hero-visual { order: -1; }
    .hero-frame { padding: 6px; border-radius: 20px; }
    .hero-banner-img { border-radius: 15px; }
    .hero-copy { gap: 16px; }
    .hero h1 { font-size: 1.75rem; }
    .hero-desc { font-size: 0.95rem; }
    .hero-actions { flex-direction: column; width: 100%; gap: 10px; }
    .hero-actions .btn { width: 100%; padding: 14px 20px; }

    /* Kategori: satu lajur, kad mendatar */
    .category-grid-3 { grid-template-columns: 1fr; gap: 12px; }
    .category-grid-3 .category-tile {
        display: grid;
        grid-template-columns: 56px 1fr;
        grid-template-areas: "icon label" "icon desc" "icon arrow";
        align-items: center;
        column-gap: 14px;
        row-gap: 2px;
        padding: 16px 18px;
        text-align: left;
    }
    .category-grid-3 .category-tile-icon { grid-area: icon; font-size: 2.2rem; justify-self: center; }
    .category-grid-3 .category-tile-label { grid-area: label; }
    .category-grid-3 .category-tile-desc { grid-area: desc; max-width: none; }
    .category-grid-3 .category-tile-arrow { grid-area: arrow; justify-self: start; margin-top: 8px; }

    /* Produk: kad lebih padat untuk 2 lajur */
    .product-grid { gap: 12px; }
    .product-thumb { height: 128px; }
    .product-emoji-wrap { width: 70px; height: 70px; font-size: 2.1rem; }
    .product-body { padding: 12px; }

    .step-card { padding: 28px 18px 22px; }

    .cta-banner { padding: 36px 20px; border-radius: 20px; gap: 20px; }
    .cta-title { font-size: 1.35rem; }
    .cta-banner .btn { width: 100%; }

    .footer-inner { flex-direction: column; text-align: center; padding: 28px 16px; }
    .footer-brand { flex-direction: column; gap: 8px; }
    .footer-nav { justify-content: center; }

    /* Tajuk & kotak umum */
    .page-title { font-size: 1.45rem; }
    .page-subtitle { font-size: 0.9rem; margin-bottom: 16px; }
    .empty-state { padding: 28px 18px; }
    .filter-pills { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px 20px; padding: 0 16px 4px; scrollbar-width: none; }
    .filter-pills::-webkit-scrollbar { display: none; }
    .pill { flex-shrink: 0; padding: 7px 14px; }

    /* Halaman produk */
    .product-detail { gap: 20px; }
    .product-detail-thumb { height: 280px; }
    .product-detail-body h1 { font-size: 1.3rem; }
    .product-detail-price { font-size: 1.55rem; }
    .product-directions { padding: 14px; font-size: 0.9rem; }
    .add-to-cart-form .button-row { flex-direction: column; }
    .add-to-cart-form .button-row .btn { width: 100%; }
    .variant-option > span { padding: 8px 12px; font-size: 0.85rem; }

    /* Troli: gambar | nama | buang, kemudian kuantiti | jumlah */
    .cart-row {
        display: grid;
        grid-template-columns: 56px minmax(0, 1fr) auto;
        grid-template-areas: "thumb info remove" "thumb qty total";
        gap: 8px 12px;
        align-items: center;
        padding: 12px;
    }
    .cart-thumb { grid-area: thumb; align-self: start; width: 56px; height: 56px; }
    .cart-info { grid-area: info; min-width: 0; }
    .cart-name { font-size: 0.9rem; line-height: 1.35; }
    .qty-form { grid-area: qty; }
    .qty-form input { width: 52px; }
    .cart-line-total { grid-area: total; width: auto; }
    .cart-remove-form { grid-area: remove; align-self: start; }
    .cart-remove { padding: 0 4px; line-height: 1; }
    .cart-summary { align-items: stretch; margin-top: 20px; }
    .cart-total { text-align: right; }
    .cart-summary .button-row { flex-direction: column-reverse; }
    .cart-summary .btn { width: 100%; }

    /* Checkout & status pesanan */
    .checkout-summary { padding: 14px; }
    .card { padding: 16px; }
    .order-line { gap: 12px; }
    .order-line > :first-child { min-width: 0; overflow-wrap: anywhere; }
    .order-line > :last-child { flex-shrink: 0; text-align: right; }
    .order-status-header h1 { font-size: 1.35rem; overflow-wrap: anywhere; }
    .card .btn { width: 100%; text-align: center; }

    /* Admin: borang & panel */
    .admin-main { padding: 18px 12px 36px; }
    .admin-page-head { flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
    .admin-page-head > .btn { width: 100%; text-align: center; }
    .admin-form { padding: 18px 16px; border-radius: 18px; }
    .admin-panel { padding: 16px; border-radius: 18px; }
    .admin-panel-flush { padding: 16px 0 0; }
    .admin-panel-flush .admin-panel-head { padding: 0 16px; }
    .admin-stats { gap: 10px; margin-bottom: 16px; }
    .admin-stat { padding: 14px; border-radius: 16px; }
    .admin-stat-icon { width: 30px; height: 30px; font-size: 0.95rem; margin-bottom: 4px; }
    .admin-stat-value { font-size: 1.2rem; }
    .admin-stat-label, .admin-stat-foot { font-size: 0.72rem; }
    .sales-chart { gap: 4px; }
    .sales-chart-value { font-size: 0.58rem; }
    .settings-head { align-items: flex-start; }
    .settings-actions .btn { flex: 1; text-align: center; }
    .ep-quote { padding: 10px 12px; gap: 10px; }
    .ep-quote-logo { width: 44px; }

    /* Admin: borang variasi — setiap variasi jadi kad */
    .variation-box { padding: 14px 12px; }
    .variation-bulk > input, .variation-bulk .input-rm { min-width: 0; flex-basis: 40%; }
    .variation-bulk .btn { width: 100%; }
    .variation-table-wrap { border: none; background: none; overflow: visible; }
    .variation-table, .variation-table tbody, .variation-table tr, .variation-table td { display: block; width: 100%; }
    .variation-table thead { display: none; }
    .variation-table tr {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        position: relative;
        padding: 12px;
        margin-bottom: 10px;
        border: 1px solid var(--border);
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.7);
    }
    .variation-table td { padding: 0; border: none; min-width: 0; }
    .variation-table td:first-child { grid-column: 1 / -1; min-width: 0; padding-right: 40px; }
    .variation-table td:nth-child(4) { grid-column: 1 / -1; }
    .variation-table td:last-child { position: absolute; top: 10px; right: 6px; width: auto; }
    .variation-table td input { min-width: 0; }
    .variation-table td:nth-child(2)::before { content: 'Stok'; }
    .variation-table td:nth-child(3)::before { content: 'Harga'; }
    .variation-table td:nth-child(4)::before { content: 'SKU'; }
    .variation-table td:nth-child(n+2):nth-child(-n+4)::before {
        display: block;
        margin-bottom: 4px;
        font-size: 0.72rem;
        font-weight: 600;
        color: var(--muted);
    }
}

/* Jadual admin jadi kad bertingkat di skrin kecil */
@media (max-width: 780px) {
    .table-cards,
    .table-cards tbody,
    .table-cards tr,
    .table-cards td {
        display: block;
        width: 100%;
    }
    .table-cards thead { display: none; }
    .table-cards tr { padding: 8px 0; border-top: 1px solid var(--border); }
    .table-cards tbody tr:first-child { border-top: none; }
    .admin-table.table-cards td {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 5px 16px;
        border-top: none;
        text-align: right;
    }
    .table-cards td[data-label]::before {
        content: attr(data-label);
        flex-shrink: 0;
        font-size: 0.7rem;
        font-weight: 600;
        letter-spacing: 0.04em;
        text-transform: uppercase;
        color: var(--muted);
        text-align: left;
    }
    .admin-table.table-cards td.table-card-title {
        justify-content: flex-start;
        padding-top: 8px;
        padding-bottom: 8px;
        text-align: left;
        font-size: 0.95rem;
    }
    .admin-table.table-cards td.table-card-actions { justify-content: flex-end; }
    .table-cards td > div:not(.table-actions),
    .table-cards td > span.table-sub { text-align: right; }
    .admin-table.table-cards td.table-empty { display: block; text-align: center; }
    .admin-table-scroll { overflow-x: visible; }
}
