/* ADMIN PREVIEW BAR */
:root {
    --admin-preview-height: 44px;
    --header-total-height: var(--nav-height);
}

.admin-preview-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0 1.25rem;
    min-height: var(--admin-preview-height);
    background: #2d5a3d;
    color: #e6f4ea;
    font-size: 0.8rem;
    font-weight: 500;
    /* Fallback sticky when standalone — overridden inside .preview-sticky-shell */
    position: sticky;
    top: 0;
    z-index: 1200;
}
.admin-preview-label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    opacity: 0.9;
}
.admin-preview-back {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    color: #e6f4ea;
    text-decoration: none;
    font-weight: 600;
    padding: 0.25rem 0.65rem;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 4px;
    transition: background-color var(--transition), border-color var(--transition);
}
.admin-preview-back:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.5);
}
/* ── Sticky Shell: wraps preview bar + navbar as a single sticky unit ─── */
/* Eliminates the two-sticky overlap: children are normal flow,           */
/* only the shell sticks — no offset mismatch possible.                   */
.preview-sticky-shell {
    position: sticky;
    top: 0;
    z-index: 1100;
    /* Exclude the sticky shell from being a scroll anchor candidate.
       Prevents the browser from adjusting scrollTop when the shell
       transitions between sticky and natural-flow at scrollY = 0. */
    overflow-anchor: none;
}

/* Keep hero sizing tied to the full sticky header when preview mode is visible. */
.preview-sticky-shell ~ .hero {
    --header-total-height: calc(var(--admin-preview-height) + var(--nav-height));
}

/* Disabled button state in admin preview mode. */
.btn-preview-disabled {
    opacity: 0.55;
    cursor: not-allowed;
    pointer-events: none;
    font-style: italic;
    font-size: 0.8rem;
    letter-spacing: 0.02em;
}
.about-grid {
    gap: 4rem;
    align-items: center;
}
.about-title {
    margin-bottom: 1rem;
}
.about-copy {
    line-height: 1.9;
    margin-bottom: 1rem;
}
.about-copy-last {
    margin-bottom: 2rem;
}

/* NAVBAR */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1250;
    background: var(--glass-bg-solid);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: var(--glass-border-light);
    height: var(--nav-height);
    box-shadow: 0 4px 24px rgba(0,0,0,0.02);
}
/* Fallback top offset for preview navbar outside the sticky shell. */
.navbar.navbar-preview-mode {
    top: var(--admin-preview-height);
}
.preview-sticky-shell .admin-preview-bar,
.preview-sticky-shell .navbar.navbar-preview-mode {
    position: static;
    top: auto;
    z-index: auto;
}
.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}
.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
    text-decoration: none;
}
.logo-icon-img {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
    object-fit: contain;
}
.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}
.logo-text strong {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, sans-serif; font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-dark);
    font-weight: 700;
}
.logo-text span {
    font-size: 0.68rem;
    color: var(--text-muted);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 0.125rem;
    flex: 1;
    justify-content: center;
}
.nav-links a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-body);
    padding: 0.5rem 0.875rem;
    border-radius: var(--radius-full);
    transition: background-color var(--transition), color var(--transition);
}
.nav-links a:hover,
.nav-links a.active {
    color: var(--matcha);
    background-color: var(--matcha-pale);
}
.nav-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}
.nav-auth {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.nav-auth .btn-sm,
.nav-right .btn-sm {
    height: 36px;
    padding: 0 1rem;
    font-size: 0.78rem;
}
.nav-user-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.icon-inline {
    vertical-align: -2px;
}

.nav-cart-btn {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-body);
    border-radius: var(--radius-full);
    transition: background-color var(--transition), color var(--transition);
    padding: 0;
    flex-shrink: 0;
}
.nav-cart-btn:hover {
    background: var(--matcha-pale);
    color: var(--matcha);
}

/* Mini Cart Dropdown */
.nav-cart-wrap {
    position: relative;
}
.mini-cart {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 280px;
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06);
    z-index: 1100;
    opacity: 0;
    transform: translateY(-4px) scale(0.97);
    pointer-events: none;
    transition: opacity .18s cubic-bezier(.32,.72,0,1),
                transform .18s cubic-bezier(.32,.72,0,1);
}
.mini-cart.is-open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}
.mini-cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.85rem 1rem 0.6rem;
    border-bottom: 1px solid var(--border-light);
}
.mini-cart-title {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-dark);
}
.mini-cart-count {
    font-size: 0.72rem;
    color: var(--text-muted);
}
.mini-cart-empty {
    padding: 1.5rem 1rem;
    text-align: center;
}
.mini-cart-empty p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
}
.mini-cart-items {
    padding: 0.5rem 0;
    max-height: 200px;
    overflow-y: auto;
}
.mini-cart-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.45rem 1rem;
}
.mini-cart-item-img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--cream);
    display: flex;
    align-items: center;
    justify-content: center;
}
.mini-cart-item-img .thumb-letter {
    font-size: 0.7rem;
}
.mini-cart-item-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.mini-cart-item-name {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mini-cart-item-meta {
    font-size: 0.7rem;
    color: var(--text-muted);
}
.mini-cart-more {
    text-align: center;
    font-size: 0.72rem;
    color: var(--text-muted);
    padding: 0.3rem 1rem 0.5rem;
}
.mini-cart-footer {
    padding: 0.65rem 1rem;
    border-top: 1px solid var(--border-light);
}
.mini-cart-checkout-btn {
    width: 100%;
}
.cart-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: var(--matcha);
    color: white;
    font-size: 0.58rem;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    padding: 0 3px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    line-height: 1;
}

/* ===== Notifikasi (lonceng) ===== */
.nav-notif-wrap {
    position: relative;
}
.notif-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: var(--danger);
    color: white;
    font-size: 0.58rem;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    padding: 0 3px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    line-height: 1;
}
.nav-notif-btn.has-unread svg {
    color: var(--matcha-dark);
}
.notif-panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 320px;
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06);
    z-index: 1100;
    opacity: 0;
    transform: translateY(-4px) scale(0.97);
    pointer-events: none;
    transition: opacity .18s cubic-bezier(.32,.72,0,1),
                transform .18s cubic-bezier(.32,.72,0,1);
}
.notif-panel.is-open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}
.notif-panel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.85rem 1rem 0.6rem;
    border-bottom: 1px solid var(--border-light);
}
.notif-panel-title {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-dark);
}
.notif-panel-actions {
    display: flex;
    align-items: center;
    gap: 0.15rem;
}
.notif-head-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.72rem;
    color: var(--matcha-dark);
    font-weight: 600;
    padding: 0.15rem 0.4rem;
    border-radius: 6px;
    transition: background-color var(--transition);
}
.notif-head-btn:hover {
    background: var(--matcha-pale);
}
.notif-head-btn-danger {
    color: var(--danger);
}
.notif-head-btn-danger:hover {
    background: var(--danger-soft);
}
.notif-panel-list {
    padding: 0.35rem 0;
    max-height: 360px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}
.notif-panel-list::-webkit-scrollbar {
    width: 6px;
}
.notif-panel-list::-webkit-scrollbar-track {
    background: transparent;
}
.notif-panel-list::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: var(--radius-full);
}
.notif-panel-list::-webkit-scrollbar-thumb:hover {
    background: var(--matcha);
}
.notif-empty {
    padding: 1.75rem 1rem;
    text-align: center;
}
.notif-empty p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
}
.notif-item-row {
    position: relative;
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid var(--border-light);
    transition: background-color var(--transition);
}
.notif-item-row:last-child {
    border-bottom: none;
}
.notif-item-row:hover {
    background: var(--cream);
}
.notif-item-row.is-unread {
    background: var(--matcha-pale);
}
.notif-item-row.is-unread:hover {
    background: var(--cream-dark);
}
.notif-item-row.is-removing {
    opacity: 0;
    transform: translateX(16px);
    transition: opacity .25s ease, transform .25s ease;
}
.notif-item {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    padding: 0.65rem 0.5rem 0.65rem 1rem;
    text-decoration: none;
    flex: 1;
    min-width: 0;
}
.notif-item-dot {
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    margin-top: 0.35rem;
    border-radius: var(--radius-full);
    background: transparent;
}
.notif-item-row.is-unread .notif-item-dot {
    background: var(--matcha);
}
.notif-item-body {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}
.notif-item-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-dark);
}
.notif-item-msg {
    font-size: 0.74rem;
    color: var(--text-body);
    line-height: 1.35;
}
.notif-item-time {
    font-size: 0.68rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
}
.notif-item-del {
    flex-shrink: 0;
    align-self: center;
    width: 26px;
    height: 26px;
    margin-right: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    border-radius: var(--radius-full);
    transition: background-color var(--transition), color var(--transition);
}
.notif-item-del:hover {
    background: var(--danger-soft);
    color: var(--danger);
}
.nav-hamburger {
    display: none;
    position: relative;
    width: 40px;
    height: 40px;
    padding: 0;
    cursor: pointer;
    flex-shrink: 0;
    border-radius: var(--radius-full);
    background: none;
    border: none;
    /* Tetap di atas overlay menu — supaya tombol bisa di-tap untuk close. */
    z-index: 1300;
}
.nav-hamburger span {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 22px;
    height: 2px;
    margin-left: -11px;
    margin-top: -1px;
    background: var(--text-dark);
    border-radius: 2px;
    transform-origin: center;
    transition: transform var(--transition), opacity var(--transition);
}
.nav-hamburger span:nth-child(1) { transform: translateY(-7px); }
.nav-hamburger span:nth-child(2) { transform: translateY(0); }
.nav-hamburger span:nth-child(3) { transform: translateY(7px); }
.nav-hamburger.is-open span:nth-child(1) {
    transform: rotate(45deg);
}
.nav-hamburger.is-open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.nav-hamburger.is-open span:nth-child(3) {
    transform: rotate(-45deg);
}
.nav-mobile {
    display: none;
    position: fixed;
    inset: 0;
    background: white;
    z-index: 1200;
    /* Top padding sama dengan tinggi navbar agar konten menu tidak tertimpa
       navbar (yang z-index-nya lebih tinggi dan tetap visible saat menu open). */
    padding: calc(var(--nav-height) + 1rem) 1.5rem 2rem;
    flex-direction: column;
    gap: 0.25rem;
    overflow-y: auto;
}
.nav-mobile.open {
    display: flex;
}
.nav-mobile a {
    font-size: 1rem;
    font-weight: 500;
    padding: 0.875rem 1rem;
    border-radius: var(--radius-sm);
    color: var(--text-dark);
    transition: background-color var(--transition), color var(--transition);
    border-bottom: 1px solid var(--border-light);
}
.nav-mobile a:hover {
    background: var(--cream);
    color: var(--matcha);
}
.nav-mobile-cart {
    background: none;
    border: 0;
    padding: 0.85rem 0;
    text-align: left;
    font: inherit;
    color: var(--text-dark);
    cursor: pointer;
}
.nav-mobile-user {
    padding: 0.85rem 0;
    color: var(--matcha);
    font-weight: 600;
}
.nav-mobile-sep {
    height: 1px;
    background: var(--border-light);
    margin: 0.5rem 0;
}

/* PAGE HEADER */
.page-header {
    background: var(--cream);
    padding: 3rem 0 2.5rem;
    text-align: center;
    border-bottom: 1px solid var(--border-light);
}
.page-header--compact {
    padding: 1.5rem 0 1.25rem;
}
.page-header--compact h1 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    margin-bottom: 0.2rem;
}
.page-header--compact p {
    font-size: 0.82rem;
}
.page-header h1 {
    font-size: clamp(1.6rem, 3vw, 2.25rem);
    font-weight: 650;
    letter-spacing: -0.028em;
    color: var(--text-dark);
    margin-bottom: 0.4rem;
}
.page-header p {
    color: var(--text-muted);
    font-size: 0.9rem;
}
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.875rem;
    justify-content: center;
    flex-wrap: wrap;
}
.breadcrumb a {
    color: var(--matcha);
}
.breadcrumb .sep {
    color: var(--border);
}

/* FOOTER */
.footer {
    background: var(--matcha-deep);
    color: rgba(255, 255, 255, 0.75);
    padding: 4rem 0 2rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}
.footer-logo-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}
.footer-logo-box {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, sans-serif;
    font-size: 1rem;
    color: white;
    flex-shrink: 0;
}
.footer-logo-text strong {
    display: block;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, sans-serif;
    font-size: 0.9rem;
    color: white;
}
.footer-logo-text span {
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.45);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.footer-brand p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.75;
}
.footer-col h4 {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, sans-serif;
    font-weight: 600;
    color: white;
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
}
.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.footer-col ul a {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.55);
    transition: color var(--transition);
}
.footer-col ul a:hover {
    color: var(--matcha-light);
}
.footer-contact p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}
.footer-contact-label {
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.72rem;
    min-width: 52px;
    padding-top: 2px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.35);
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* HERO — layout & sizing. Visual polish in liquid.css; mobile rebuild at EOF. */
.hero {
    background-color: var(--matcha-deep);
    min-height: calc(100vh  - var(--header-total-height));
    min-height: calc(100svh - var(--header-total-height));
    display: flex;
    align-items: center;
    position: relative;
    overflow: clip;
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 50% 50%, rgba(var(--matcha-rgb), 0.6) 0%, transparent 50%),
        radial-gradient(circle at 20% 30%, rgba(45, 92, 62, 0.8) 0%, transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(122, 171, 138, 0.4) 0%, transparent 50%);
    pointer-events: none;
}
.hero-container {
    max-width: var(--max-width);
    margin: 0 auto;
    /* Safe-area aware padding (notch left/right, home indicator bottom). */
    padding: 5rem 1.5rem;
    padding-bottom: var(--hero-safe-bottom);
    padding-left:  max(1.5rem, env(safe-area-inset-left,  0px));
    padding-right: max(1.5rem, env(safe-area-inset-right, 0px));
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
    width: 100%;
}
.hero-label {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--matcha-light);
    background: rgba(255, 255, 255, 0.08);
    padding: 0.35rem 1rem;
    border-radius: var(--radius-full);
    margin-bottom: 1.75rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
}
.hero-title {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--white);
    font-size: clamp(2.5rem, 5.5vw, 4rem);
    line-height: 1.15;
    margin-bottom: 0.5rem;
}
.hero-title-jp {
    display: block;
    font-size: clamp(0.9rem, 1.8vw, 1.15rem);
    font-style: italic;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 0.5rem;
    letter-spacing: 0.08em;
    font-weight: 400;
}
.hero-desc {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.975rem;
    line-height: 1.85;
    margin: 1.75rem 0 2.5rem;
    max-width: 460px;
}
.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}
.hero-btn-primary {
    background: var(--glass-bg-solid);backdrop-filter: var(--glass-blur);-webkit-backdrop-filter: var(--glass-blur);border: var(--glass-border-light);
    color: var(--matcha-dark);
    font-weight: 600;
    padding: 0.875rem 2rem;
    border-radius: var(--radius-full);
    transition: background-color var(--transition), transform var(--transition), box-shadow var(--transition);
    font-size: 0.9rem;
    border: 2px solid transparent;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.hero-btn-primary:hover {
    background: var(--cream);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}
.hero-btn-secondary {
    background: transparent;
    color: white;
    font-weight: 500;
    padding: 0.875rem 2rem;
    border-radius: var(--radius-full);
    transition: background-color var(--transition), border-color var(--transition);
    font-size: 0.9rem;
    border: 2px solid rgba(255, 255, 255, 0.35);
    display: inline-flex;
    align-items: center;
}
.hero-btn-secondary:hover {
    border-color: white;
    background: rgba(255, 255, 255, 0.08);
}
.hero-stats {
    display: flex;
    gap: 2.5rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    user-select: none;
}
.hero-stat-num {
    display: block;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, sans-serif;
    font-size: 1.75rem;
    color: white;
    font-weight: 700;
    line-height: 1;
}
.hero-stat-label {
    display: block;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.45);
    letter-spacing: 0.06em;
    margin-top: 0.25rem;
    text-transform: uppercase;
}
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    min-height: 480px;
}
.hero-photo-frame {
    width: min(430px, 88%);
    aspect-ratio: 4 / 5;
    border-radius: 28px;
    overflow: hidden;
    position: relative;
    z-index: 2;
    box-shadow: 0 28px 80px rgba(10, 28, 18, 0.38);
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: var(--cream);
}
/* ── Skeleton Loader (shared across hero, product cards, detail page) ── */
.km-skeleton {
    position: absolute;
    inset: 0;
    background: var(--cream);
    z-index: 3;
    opacity: 1;
    visibility: visible;
    transition: opacity .35s ease, visibility .35s ease;
}
.km-skeleton::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.45) 50%, transparent 100%);
    background-size: 200% 100%;
    animation: km-shimmer 1.4s ease-in-out infinite;
}
.km-image-loaded .km-skeleton {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
@keyframes km-shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
@media (prefers-reduced-motion: reduce) {
    .km-skeleton::after {
        animation: none !important;
    }
}
.hero-photo-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.04),
        rgba(12, 39, 24, 0.18)
    );
    pointer-events: none;
}
.hero-photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-circle {
    width: 460px;
    height: 460px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    pointer-events: none;
}
.hero-circle::before {
    content: "";
    position: absolute;
    inset: 24px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.07);
}
.hero-cha {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, sans-serif;
    font-size: 11rem;
    color: rgba(255, 255, 255, 0.06);
    user-select: none;
    line-height: 1;
}
.hero-float-card {
    position: absolute;
    background: var(--glass-bg-solid);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: var(--glass-border-light);
    border-radius: var(--radius-lg);
    padding: 0.875rem 1.125rem;
    box-shadow: var(--glass-shadow);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 160px;
    z-index: 3;
}
.hero-float-card.pos-left {
    bottom: 11%;
    left: 2%;
}
.hero-float-card.pos-right {
    top: 14%;
    right: 1%;
}
.float-icon {
    width: 36px;
    height: 36px;
    background: var(--matcha-pale);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--matcha);
}
.float-info strong {
    display: block;
    font-size: 0.8rem;
    color: var(--text-dark);
    font-weight: 600;
}
.float-info span {
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* SECTION HEADER / FEATURES */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}
.section-header h2 {
    margin-bottom: 0.5rem;
}
.section-header p {
    color: var(--text-muted);
    font-size: 0.9rem;
    max-width: 500px;
    margin: 0 auto;
}
.features-bg {
    background: var(--cream);
    position: relative;
}
.features-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 10% 20%, rgba(var(--matcha-rgb), 0.05) 0%, transparent 40%),
                radial-gradient(circle at 90% 80%, rgba(255, 255, 255, 0.4) 0%, transparent 40%);
    pointer-events: none;
}
.feature-card {
    background: var(--glass-bg-solid);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: var(--glass-border-light);
    padding: 2rem 1.75rem;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--glass-shadow);
    transform: translateY(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transition: transform var(--transition);
}
.feature-card:active {
    transform: scale(0.96);
}
.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}
.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--matcha-pale);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    color: var(--matcha);
}
.feature-card h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}
.feature-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.65;
}
.story-visual {
    background: linear-gradient(145deg, var(--matcha-pale), var(--cream));
    border-radius: var(--radius-lg);
    padding: 3rem 2rem;
    text-align: center;
    border: 1px solid var(--border-light);
}
.story-kanji {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, sans-serif;
    font-size: 5rem;
    color: var(--matcha);
    opacity: 0.2;
    line-height: 1;
    margin-bottom: 1rem;
    display: block;
}
.story-title-jp {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, sans-serif;
    font-size: 1.5rem;
    color: var(--matcha-dark);
    display: block;
    margin-bottom: 0.4rem;
}
.story-subtitle {
    font-size: 0.78rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* PRODUCT CARD */
.product-card {
    background: #FFFFFF;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transform: translateY(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transition: transform var(--dur-fast) cubic-bezier(.32,.72,0,1);
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    transform: translateY(-2px);
    border-color: var(--matcha-light);
}
.product-card:active {
    transform: scale(0.98);
}
.product-card-img {
    width: 100%;
    aspect-ratio: 4/3;
    position: relative;
    overflow: hidden;
    background: var(--cream);
}
/* (Skeleton styles consolidated above — see .km-skeleton block) */
.product-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transition: transform 0.25s cubic-bezier(.32,.72,0,1);
}
.product-card:hover .product-card-img img {
    transform: scale(1.03);
}



.product-img-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(
        145deg,
        var(--matcha-pale) 0%,
        var(--cream) 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
}
.placeholder-letter {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, sans-serif; font-weight: 600;
    font-size: 3rem;
    font-weight: 700;
    color: var(--matcha);
    opacity: 0.25;
}
.product-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: var(--matcha);
    color: white;
    font-size: 0.68rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-full);
}
.product-card-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.product-card-cat {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--matcha);
    font-weight: 600;
    margin-bottom: 0.35rem;
}
.product-card-name {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, sans-serif; font-weight: 600;
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: 0.4rem;
    line-height: 1.3;
}
.product-card-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.55;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 1rem;
}
.product-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: auto;
    flex-wrap: wrap;
}
.product-card-price {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--matcha-dark);
    white-space: nowrap;
}
.menu-card-actions {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.menu-detail-btn {
    background: var(--cream-dark);
    color: var(--text-dark);
}
.customer-inline-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--text-muted);
    padding: 3rem 0;
}
.customer-inline-empty-sm {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--text-muted);
    padding: 2rem 0;
}
.btn-add-cart {
    background: var(--matcha);
    color: #FFFFFF;
    border: none;
    border-radius: var(--radius-full);
    padding: 0.5rem 1rem;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transform: translateY(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transition: transform var(--dur-fast) cubic-bezier(.32,.72,0,1),
                background-color 0.18s ease;
    white-space: nowrap;
    font-family: inherit;
    height: 34px;
    display: inline-flex;
    align-items: center;
}
.btn-add-cart:hover {
    background: var(--matcha-dark);
}
.menu-detail-btn {
    height: 34px;
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 600;
    border: 1px solid var(--border);
    background: #FFFFFF;
    color: var(--text-dark);
}
.menu-detail-btn:hover {
    background: var(--matcha-pale);
    border-color: var(--matcha);
    color: var(--text-dark);
}
.btn-add-cart:hover {
    background: var(--matcha);
    color: white;
}

/* MENU PAGE */
.menu-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}
.menu-filter {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}
.filter-btn {
    padding: 0.45rem 1.1rem;
    border-radius: var(--radius-full);
    font-size: 0.825rem;
    font-weight: 500;
    border: 1.5px solid var(--border);
    color: var(--text-body);
    background: white;
    cursor: pointer;
    transform: translateY(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transition: background-color var(--transition), color var(--transition), border-color var(--transition);
    font-family: inherit;
}
.filter-btn:hover {
    border-color: var(--matcha);
    color: var(--matcha);
}
.filter-btn.active {
    background: var(--matcha);
    color: white;
    border-color: var(--matcha);
}
.menu-search-wrap {
    position: relative;
}
.menu-search-wrap svg {
    position: absolute;
    left: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}
.menu-search-input {
    padding: 0.55rem 1rem 0.55rem 2.5rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    outline: none;
    transition: border-color var(--transition);
    width: 220px;
    font-family: inherit;
    color: var(--text-dark);
    background: white;
}
.menu-search-input:focus {
    border-color: var(--matcha);
}
.menu-search-input::placeholder {
    color: var(--text-muted);
}

/* PRODUCT DETAIL */
.detail-wrap {
    padding: 1.5rem 0 3rem;
}
.detail-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 3rem;
    align-items: start;
}
.detail-img-col {
    position: static;
    min-width: 0;
}
.detail-info-col {
    min-width: 0;
}
.detail-main-img {
    width: 100%;
    aspect-ratio: 1/1;
    max-height: 380px;
    margin-inline: auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--cream);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 18px 55px rgba(31,58,46,0.12);
}
/* (Skeleton styles consolidated — see .km-skeleton block) */
.detail-placeholder-lg {
    font-size: 5rem;
    font-weight: 700;
    color: var(--matcha);
    opacity: 0.12;
}
.detail-cat {
    display: inline-block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--matcha-dark);
    font-weight: 600;
    margin-bottom: 0.5rem;
    background: var(--matcha-pale);
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius-full);
}
.detail-name {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 650;
    letter-spacing: -0.02em;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}
.detail-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--matcha-dark);
    margin-bottom: 0.85rem;
    display: block;
}
.detail-desc {
    font-size: 0.9rem;
    color: var(--text-body);
    line-height: 1.6;
    margin-bottom: 1rem;
}
.detail-meta {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6rem;
    margin-bottom: 1rem;
}
.detail-meta-item {
    background: var(--cream);
    border-radius: 12px;
    padding: 0.75rem 0.85rem;
    border: 1px solid var(--border-light);
    text-align: center;
}
.detail-meta-item:last-child {
    border-right: none;
}
.detail-meta-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    display: block;
    margin-bottom: 0.2rem;
}
.detail-meta-val {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-dark);
    display: block;
}
.qty-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.85rem;
}
.qty-row-label {
    font-size: 0.85rem;
    font-weight: 550;
    color: var(--text-dark);
    min-width: 55px;
}
.qty-ctrl {
    display: inline-grid;
    grid-template-columns: 40px 48px 40px;
    align-items: center;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-full);
    overflow: hidden;
    height: 40px;
}
.qty-btn {
    width: 100%;
    height: 100%;
    background: none;
    border: none;
    font-size: 1.1rem;
    color: var(--matcha);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    transition: background-color 0.15s ease;
    font-family: inherit;
    line-height: 1;
    padding: 0;
    margin: 0;
}
.qty-btn:hover {
    background: var(--matcha-pale);
}
.qty-btn:active {
    background: var(--cream-dark);
}
.qty-num {
    width: 100%;
    height: 100%;
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    border: none;
    border-left: 1px solid var(--border-light);
    border-right: 1px solid var(--border-light);
    outline: none;
    background: none;
    font-family: inherit;
    line-height: 40px;
    padding: 0;
    margin: 0;
    -moz-appearance: textfield;
    appearance: textfield;
}
.qty-num::-webkit-outer-spin-button,
.qty-num::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.detail-total-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.7rem 1rem;
    background: var(--cream);
    border-radius: 12px;
    border: 1px solid var(--border-light);
    margin-bottom: 0.85rem;
}
.detail-total-label {
    font-size: 0.82rem;
    color: var(--text-muted);
}
.detail-total-val {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--matcha-dark);
}
.detail-actions {
    display: flex;
    gap: 0.6rem;
}
.detail-actions .btn {
    flex: 1;
    justify-content: center;
}
.detail-not-found {
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}
.detail-not-found h2 {
    margin-bottom: 0.75rem;
}
.detail-not-found p {
    margin-bottom: 1.5rem;
}
.product-status-warning {
    color: var(--warning-text);
}
.product-unavailable-qty {
    opacity: 0.45;
}
.related-section {
    background: var(--cream);
    padding: 4rem 0;
}

/* CART */
.cart-wrap {
    padding: 1.25rem 0 6rem;
}
.container--narrow {
    max-width: 680px;
    margin: 0 auto;
    padding: 0 1.25rem;
}
.cart-header {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 1.5rem;
}
.cart-eyebrow {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--matcha);
}
.cart-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
    line-height: 1.1;
    letter-spacing: -0.02em;
}
.cart-title em {
    font-style: italic;
    font-weight: 700;
    color: var(--matcha-dark);
}
.cart-items-col {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.cart-item {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 18px;
    padding: 0.85rem 1.1rem;
    display: flex;
    gap: 0.85rem;
    align-items: center;
    transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition);
    position: relative;
    overflow: hidden;
}
.cart-item-accent {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 3px;
    background: var(--matcha);
    border-radius: 18px 0 0 18px;
    transform: scaleY(0);
    transform-origin: center;
    opacity: 0;
    transition: transform var(--transition), opacity var(--transition);
}
.cart-item:hover {
    box-shadow: 0 6px 22px rgba(31, 58, 46, 0.08);
    border-color: rgba(var(--matcha-rgb), 0.45);
}
.cart-item:hover .cart-item-accent {
    transform: scaleY(1);
    opacity: 1;
}
.cart-item-unavailable {
    opacity: 0.45;
}
.cart-unavailable-badge {
    position: absolute;
    top: 6px;
    right: 8px;
    background: var(--danger-strong);
    color: var(--white);
    font-size: 0.6rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
    z-index: 1;
}
.cart-item-thumb {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--matcha-pale);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}
.cart-thumb-icon {
    font-size: 1.5rem;
    color: var(--matcha);
    opacity: 0.55;
}
.thumb-letter {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--matcha);
    opacity: 0.4;
}
.cart-item-body {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    min-width: 0;
}
.cart-item-info {
    min-width: 0;
}
.cart-item-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 0.1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cart-item-unit {
    font-size: 0.75rem;
    color: var(--text-muted);
}
.cart-item-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}
.cart-subtotal {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--matcha-dark);
    min-width: 70px;
    text-align: right;
}
.cart-qty-ctrl {
    display: flex;
    align-items: center;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-full);
    overflow: hidden;
    background: var(--cream);
    padding: 2px;
    gap: 2px;
}
.cart-qty-btn {
    width: 28px;
    height: 28px;
    background: none;
    border: none;
    border-radius: var(--radius-full);
    color: var(--matcha);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    transition: background-color 0.15s ease, opacity 0.15s ease;
    font-family: inherit;
    padding: 0;
}
.cart-qty-btn:hover {
    background: var(--matcha-pale);
}
.cart-qty-btn:disabled,
.cart-qty-btn[disabled] {
    opacity: 0.35;
    cursor: not-allowed;
    background: none;
}
.cart-qty-btn:disabled:hover,
.cart-qty-btn[disabled]:hover {
    background: none;
}
.cart-qty-num {
    width: 24px;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-dark);
}
.btn-remove-item {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 6px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    line-height: 1;
    transition: color var(--transition), background var(--transition);
}
.btn-remove-item:hover {
    color: var(--danger-strong);
    background: rgba(192, 57, 43, 0.08);
}
/* Slide-out + fade saat item dihapus */
.cart-item.is-removing {
    opacity: 0 !important;
    transform: translateX(40px) !important;
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(.4, 0, .6, 1) !important;
}
.cart-actions-row {
    margin-top: 1rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.cart-actions-row .btn i {
    font-size: 0.95rem;
    vertical-align: middle;
}

/* Summary card (di bawah list item) */
.cart-bottom-bar {
    margin-top: 1.5rem;
    background: white;
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: 0 6px 24px rgba(31, 58, 46, 0.06);
    z-index: 50;
}
.cart-summary-head {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    padding-bottom: 0.9rem;
    margin-bottom: 0.9rem;
    border-bottom: 1px solid var(--border-light);
}
.cart-summary-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-dark);
}
.cart-summary-count {
    font-size: 0.8rem;
    color: var(--text-muted);
}
.cart-summary-breakdown {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    margin-bottom: 0.9rem;
}
.cart-sum-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.82rem;
}
.cart-sum-label {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}
.cart-sum-name {
    color: var(--text-body);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cart-sum-qty {
    font-size: 0.72rem;
    color: var(--text-muted);
}
.cart-sum-sub {
    font-weight: 600;
    color: var(--text-dark);
    white-space: nowrap;
    text-align: right;
}
.cart-summary-total-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 0.9rem;
    border-top: 1px solid var(--border-light);
    margin-bottom: 1.1rem;
}
.cart-summary-total-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
}
.cart-bottom-total {
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--matcha-dark);
    letter-spacing: -0.02em;
}
.cart-checkout-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}
.cart-checkout-arrow {
    font-size: 1.05rem;
    transition: transform var(--transition);
}
.cart-checkout-btn:hover .cart-checkout-arrow {
    transform: translateX(5px);
}
.cart-secure-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    margin: 0.85rem 0 0;
    font-size: 0.72rem;
    color: var(--text-muted);
}
.cart-secure-note i {
    font-size: 0.85rem;
    color: var(--matcha);
}

/* Cart empty */
.cart-empty {
    text-align: center;
    padding: 3.5rem 2rem;
    background: var(--cream);
    border-radius: 12px;
    border: 1px solid var(--border-light);
}
.cart-empty-icon {
    width: 64px;
    height: 64px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    border: 1px solid var(--border-light);
    color: var(--text-muted);
}
.cart-empty-icon i {
    font-size: 1.9rem;
    color: var(--matcha);
    opacity: 0.6;
}
.cart-empty h3 {
    margin-bottom: 0.4rem;
    font-size: 1.1rem;
}
.cart-empty p {
    color: var(--text-muted);
    font-size: 0.82rem;
    margin-bottom: 1.25rem;
}

/* Summary rows (shared with checkout) */
.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
    color: var(--text-body);
    margin-bottom: 0.5rem;
}
.summary-row.is-total {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-dark);
    border-top: 1px solid var(--border-light);
    margin-top: 0.4rem;
    padding-top: 0.75rem;
    margin-bottom: 1rem;
}
.summary-row.is-total span:last-child {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--matcha-dark);
}
.summary-free {
    color: var(--matcha);
    font-weight: 600;
}
.summary-note {
    font-size: 0.72rem;
    color: var(--text-muted);
    background: var(--cream);
    border-radius: 8px;
    padding: 0.5rem 0.65rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

/* Legacy cart-summary (kept for checkout sidebar) */
.cart-summary {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 1.25rem;
    position: sticky;
    top: calc(var(--nav-height) + 1rem);
}
.cart-summary-title {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-dark);
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 1rem;
}
.cart-summary-actions {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.cart-empty {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--cream);
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
}
.cart-empty-icon {
    width: 72px;
    height: 72px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    border: 1px solid var(--border-light);
    color: var(--text-muted);
}
.cart-empty h3 {
    margin-bottom: 0.5rem;
}
.cart-empty p {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

/* CHECKOUT */
.checkout-wrap {
    padding: 2.5rem 0 4rem;
}
.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 2rem;
    align-items: start;
}
.checkout-section {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 1.75rem;
    margin-bottom: 1.25rem;
}
.checkout-section-head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 1.25rem;
}
.step-num {
    width: 24px;
    height: 24px;
    background: var(--matcha);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 700;
    flex-shrink: 0;
}
.checkout-section-head h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    font-family: inherit;
}
.payment-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.payment-opt {
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1rem 1.25rem;
    cursor: pointer;
    transition: background-color var(--transition), border-color var(--transition);
}
.payment-opt:hover {
    border-color: var(--matcha-light);
}
.payment-opt.selected {
    border-color: var(--matcha);
    background: var(--matcha-pale);
}
.payment-opt input[type="radio"] {
    accent-color: var(--matcha);
    width: 17px;
    height: 17px;
    flex-shrink: 0;
    cursor: pointer;
}
.payment-opt-icon {
    width: 36px;
    height: 36px;
    background: var(--cream);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--matcha);
}
.payment-opt-info strong {
    display: block;
    font-size: 0.9rem;
    color: var(--text-dark);
    margin-bottom: 0.15rem;
}
.payment-opt-info span {
    font-size: 0.78rem;
    color: var(--text-muted);
}
.qris-box {
    display: none;
    margin-top: 1rem;
    background: var(--cream);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
    border: 1px solid var(--border-light);
}
.qris-box.show {
    display: block;
}
.qris-box img {
    width: 180px;
    height: 180px;
    object-fit: contain;
    margin: 0 auto 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
    background: white;
    padding: 0.5rem;
}
.qris-img-trigger {
    display: inline-block;
    background: none;
    border: none;
    padding: 0;
    cursor: zoom-in;
    font-family: inherit;
    color: inherit;
    margin-bottom: 0.25rem;
}
.qris-img-trigger img {
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    margin-bottom: 0.5rem;
}
.qris-img-trigger:hover img {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}
.qris-img-trigger:active img {
    transform: scale(0.98);
}
.qris-zoom-hint {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 500;
    padding: 0.3rem 0.7rem;
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 999px;
}

/* QRIS Lightbox — fullscreen viewer untuk QR code */
.qris-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 35, 24, 0.85);
    -webkit-backdrop-filter: blur(8px);
            backdrop-filter: blur(8px);
    z-index: 2100;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.2s ease;
}
.qris-lightbox.is-open {
    display: flex;
    opacity: 1;
}
.qris-lightbox-img {
    max-width: min(90vw, 520px);
    max-height: 85vh;
    width: auto;
    height: auto;
    background: white;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
    cursor: default;
    transform: scale(0.96);
    transition: transform 0.22s cubic-bezier(0.32, 0.72, 0, 1);
}
.qris-lightbox.is-open .qris-lightbox-img {
    transform: scale(1);
}
.qris-lightbox-close {
    position: absolute;
    top: max(1rem, env(safe-area-inset-top, 0));
    right: max(1rem, env(safe-area-inset-right, 0));
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease;
}
.qris-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.25);
}
.qris-box-amount {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    padding: 0.65rem 1rem;
    margin: 0 auto 0.9rem;
    background: white;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    max-width: 260px;
}
.qris-box-amount-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}
.qris-box-amount-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--matcha);
    letter-spacing: -0.01em;
}
.qris-box-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}
.qris-box-note {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.55;
}
.checkout-summary {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 1.5rem;
    position: sticky;
    top: calc(var(--nav-height) + 1rem);
}
.checkout-summary-title {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, sans-serif; font-weight: 600;
    font-size: 1rem;
    font-weight: 600;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 0;
}
.checkout-info-alert {
    background: var(--info-soft);
    border-left: 4px solid var(--info-border);
    color: #2c3e50;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
}
.checkout-helper-note {
    text-align: center;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 0.75rem;
}
.checkout-back-link {
    margin-top: 0.25rem;
}
.co-item {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem 0;
    border-bottom: 1px solid var(--border-light);
}
.co-item:last-of-type {
    border-bottom: none;
}
.co-item-thumb {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-sm);
    background: linear-gradient(145deg, var(--matcha-pale), var(--cream));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}
.co-item-info {
    flex: 1;
    min-width: 0;
}
.co-item-info strong {
    display: block;
    font-size: 0.85rem;
    color: var(--text-dark);
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.co-item-info span {
    font-size: 0.775rem;
    color: var(--text-muted);
}
.co-item-price {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
    white-space: nowrap;
    flex-shrink: 0;
}

/* ORDER SUCCESS */
.success-page {
    min-height: calc(100vh - var(--header-total-height));
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(
        135deg,
        var(--cream) 0%,
        var(--matcha-pale) 100%
    );
    padding: 2rem;
}
.success-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 3rem 2.5rem;
    max-width: 540px;
    width: 100%;
    text-align: center;
    box-shadow: var(--shadow-lg);
}
.success-icon-wrap {
    width: 88px;
    height: 88px;
    background: var(--matcha-pale);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.75rem;
    color: var(--matcha);
}
.success-card h1 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}
.success-subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}
.order-info-box {
    background: var(--cream);
    border-radius: var(--radius);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    text-align: left;
}
.order-info-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    font-size: 0.85rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border-light);
}
.order-info-row:last-child {
    border-bottom: none;
}
.order-info-row span:first-child {
    color: var(--text-muted);
    flex: 0 0 auto;
}
.order-info-row span:last-child {
    font-weight: 600;
    color: var(--text-dark);
    min-width: 0;
}
.order-info-row .badge {
    white-space: nowrap;
}
@media (min-width: 520px) {
    .order-info-row {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 1rem;
    }
    .order-info-row span:last-child {
        text-align: right;
    }
}
.order-info-code {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, sans-serif; font-weight: 600;
}
.order-info-total {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, sans-serif; font-weight: 600;
    color: var(--matcha-dark);
    font-size: 1rem;
}
.order-success-items {
    text-align: left;
    margin-bottom: 1.5rem;
}
.order-success-items-title {
    margin-bottom: 0.75rem;
}
.success-note {
    background: var(--matcha-pale);
    border-radius: var(--radius);
    padding: 1rem 1.125rem;
    font-size: 0.83rem;
    color: var(--matcha-dark);
    margin-bottom: 2rem;
    text-align: left;
    line-height: 1.65;
    border-left: 3px solid var(--matcha);
}
.success-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* MODAL (customer-facing) */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    width: auto;
    min-height: 100vh;
    min-height: 100dvh;
    /* Harus di atas navbar (z-index: 1250) */
    z-index: 1400;
    align-items: center;
    justify-content: center;
    /* Backdrop gelap agar navbar tertutup sempurna */
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    padding: clamp(0.75rem, 2vw, 1.5rem);
    box-sizing: border-box;
}
.modal-overlay.open {
    display: flex;
    animation: modalBdIn 0.2s ease;
}
@keyframes modalBdIn {
    from { background: rgba(0,0,0,0); backdrop-filter: blur(0px); }
    to   { background: rgba(0,0,0,0.45); backdrop-filter: blur(2px); }
}
.modal-box {
    background: white;
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: min(500px, calc(100vw - 2rem));
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    overflow: hidden;
    animation: modalSlideIn 0.25s ease;
}
@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
.modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.125rem 1.5rem;
    border-bottom: 1px solid var(--border-light);
    flex-shrink: 0;
}
.modal-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-dark);
    min-width: 0;
    overflow-wrap: anywhere;
}
.modal-close {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    padding: 0;
}
.modal-close:hover {
    background: var(--cream);
    color: var(--text-dark);
}
.modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
    min-width: 0;
}
.modal-body::-webkit-scrollbar {
    width: 0;
    height: 0;
}
.modal-body {
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.modal-foot {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.625rem;
    flex-shrink: 0;
    background: var(--cream);
}

/* AUTH */
.auth-page {
    min-height: calc(100vh - var(--header-total-height));
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(
        135deg,
        var(--cream) 0%,
        var(--matcha-pale) 60%,
        var(--cream) 100%
    );
    padding: 2rem;
}
.auth-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    width: 100%;
    max-width: 420px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
}
.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}
.auth-logo-box {
    width: 64px;
    height: 64px;
    background: transparent;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    overflow: hidden;
}
.auth-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.auth-header h2 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}
.auth-header p {
    font-size: 0.85rem;
    color: var(--text-muted);
}
.auth-switch {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}
.auth-switch a {
    color: var(--matcha);
    font-weight: 600;
}
.auth-switch a:hover {
    text-decoration: underline;
}
.auth-footer-note {
    text-align: center;
    margin-top: 1.25rem;
    font-size: 0.78rem;
    color: var(--text-muted);
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-light);
}
.auth-footer-note a {
    color: var(--matcha);
}
.pw-wrap {
    position: relative;
}
.pw-wrap .form-control {
    padding-right: 3rem;
}
.check-label-start {
    align-items: flex-start;
    margin-bottom: 1.5rem;
}
.check-input-start {
    margin-top: 3px;
    flex-shrink: 0;
}
.pw-toggle {
    position: absolute;
    right: 0.25rem;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0;
    transition: background-color var(--transition), color var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
}
.pw-toggle:hover {
    background: var(--matcha-pale);
    color: var(--matcha);
}
.check-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}
.check-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-body);
    cursor: pointer;
}
.check-label input[type="checkbox"] {
    accent-color: var(--matcha);
    cursor: pointer;
}
.check-link {
    font-size: 0.82rem;
    color: var(--matcha);
}

/* ORDERS (RIWAYAT) */
.orders-wrap {
    padding: 2.5rem 0 4rem;
}
.orders-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}
.orders-filter-row {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
}
.order-card {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    margin-bottom: 1rem;
    overflow: hidden;
    transform: translateY(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transition: transform var(--transition);
}
.order-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}
.order-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background: var(--cream);
    border-bottom: 1px solid var(--border-light);
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Countdown Timer */
.order-countdown {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 1.5rem;
    background: #fef9e7;
    border-bottom: 1px solid rgba(243, 156, 18, 0.15);
    font-size: 0.78rem;
    color: #7d6608;
}
.order-countdown svg {
    flex-shrink: 0;
    color: #d4ac0d;
}
.order-countdown-time {
    font-variant-numeric: tabular-nums;
    color: #b7950b;
    font-weight: 700;
}
.order-countdown-expired {
    color: #c0392b;
    font-weight: 600;
}
.order-countdown--lg {
    justify-content: center;
    padding: 0.75rem 1.25rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    font-size: 0.85rem;
}

.order-id {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, sans-serif; font-weight: 600;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-dark);
}
.order-date {
    font-size: 0.78rem;
    color: var(--text-muted);
}
.order-card-body {
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.order-thumbs {
    display: flex;
    gap: 0.4rem;
}
.order-thumb {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-sm);
    background: var(--cream);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--matcha);
    overflow: hidden;
}
.order-thumb--has-img {
    background: none;
}
.order-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.order-thumb.more {
    background: var(--cream-dark);
    font-family: inherit;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
}
.order-meta {
    flex: 1;
}
.order-meta strong {
    display: block;
    font-size: 0.875rem;
    color: var(--text-dark);
    margin-bottom: 0.2rem;
}
.order-meta span {
    font-size: 0.8rem;
    color: var(--text-muted);
}
.order-total-val {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, sans-serif; font-weight: 600;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--matcha-dark);
    margin-left: auto;
    white-space: nowrap;
}
.order-card-foot {
    padding: 0.875rem 1.5rem;
    border-top: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.order-pay-info {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* TEAM */
.team-hero {
    background: linear-gradient(
        135deg,
        var(--matcha-pale) 0%,
        var(--cream) 100%
    );
    padding: 5rem 0 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.team-hero-bg-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, sans-serif; font-weight: 600;
    font-size: 12rem;
    color: var(--matcha);
    opacity: 0.04;
    white-space: nowrap;
    user-select: none;
    pointer-events: none;
    font-weight: 700;
}
.team-hero-content {
    position: relative;
    z-index: 1;
}
.team-hero-content h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
}
.team-hero-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    max-width: 480px;
    margin: 0 auto;
    line-height: 1.75;
}
.team-section {
    background: var(--cream);
    padding: 5rem 0;
}
.team-intro {
    text-align: center;
    max-width: 560px;
    margin: 0 auto 3.5rem;
}
.team-intro h2 {
    margin-bottom: 0.75rem;
}
.team-intro p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.75;
}
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 1.5rem;
}
.team-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transform: translateY(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transition: transform var(--transition);
    border: 1px solid var(--border-light);
}
.team-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}
.team-card-avatar {
    width: 100%;
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, var(--matcha-pale), var(--cream));
}
.team-initial {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, sans-serif; font-weight: 600;
    font-size: 2.25rem;
    font-weight: 700;
    color: white;
}
.team-initial-a { background: #4a7c59; }
.team-initial-b { background: #5d8a6b; }
.team-initial-c { background: #3d6b47; }
.team-initial-d { background: #6b9e6b; }
.team-initial-e { background: #2d5c3e; }
.team-card-body {
    padding: 1.5rem 1.25rem;
    text-align: center;
}
.team-card-name {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, sans-serif; font-weight: 600;
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}
.team-card-nim {
    font-size: 0.75rem;
    color: var(--matcha);
    font-weight: 600;
    letter-spacing: 0.06em;
    margin-bottom: 0.35rem;
}
.team-card-role {
    font-size: 0.8rem;
    color: var(--text-muted);
}
.team-project-section {
    padding: 5rem 0;
    background: white;
}
.team-project-copy {
    max-width: 640px;
}
.team-project-title {
    margin-bottom: 1rem;
}
.team-project-copy p {
    line-height: 1.9;
}
.team-project-copy-main {
    margin-bottom: 0.75rem;
}
.team-project-copy-muted {
    color: var(--text-muted);
}
.project-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    margin-top: 2rem;
}
.project-info-item {
    background: var(--cream);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
    border: 1px solid var(--border-light);
}
.project-info-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--matcha);
    font-weight: 600;
    display: block;
    margin-bottom: 0.4rem;
}
.project-info-val {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, sans-serif; font-weight: 600;
    font-size: 1.05rem;
    color: var(--text-dark);
    font-weight: 700;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .hero-circle {
        width: 320px;
        height: 320px;
    }
    .hero-float-card {
        display: none;
    }
    /* Reduce hero vertical footprint so stats don't overflow on tablet/iPad */
    .hero-container {
        padding: 2.5rem 1.5rem var(--hero-safe-bottom);
    }
    .hero-label {
        margin-bottom: 1.25rem;
    }
    .hero-desc {
        margin: 0.75rem 0 1.5rem;
    }
    .hero-stats {
        margin-top: 1.5rem;
        padding-top: 1.25rem;
    }
    .checkout-layout {
        grid-template-columns: 1fr;
    }
    .checkout-summary {
        position: static;
    }
    .detail-img-col {
        position: static;
    }
    .detail-grid {
        gap: 2.5rem;
    }
}

/* IPAD LANDSCAPE / SMALL LAPTOP (1024–1366px × ≤950px tall)
   Shrinks hero so stats don't overflow short viewports. */
@media (min-width: 1024px) and (max-width: 1366px) and (max-height: 950px) {
    .hero-container {
        padding: 2rem 1.5rem calc(var(--hero-safe-bottom) + 0.75rem);
    }
    .hero-desc {
        margin: 0.75rem 0 1.25rem;
    }
    .hero-stats {
        margin-top: 1.5rem;
        padding-top: 1.25rem;
    }
    .hero-visual {
        transform: scale(0.85);
        transform-origin: center;
    }
}

/* TABLET PORTRAIT (769–1023px) */
@media (min-width: 769px) and (max-width: 1023px) {
    .hero-container {
        grid-template-columns: 1fr;
        padding: 3rem 2rem;
        text-align: center;
        gap: 3rem;
    }
    .hero-visual {
        display: flex;
        transform: scale(0.9);
        min-height: 400px;
    }
    .hero-desc {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-actions {
        justify-content: center;
    }
    .hero-stats {
        justify-content: center;
        gap: 2rem;
        margin-top: 1.25rem;
        padding-top: 1rem;
    }
}

@media (max-width: 768px) {
    .nav-links,
    .nav-auth {
        display: none;
    }
    .nav-hamburger {
        display: flex;
    }
    .nav-cart-btn {
        display: flex;
    }
    /* Mini cart dropdown disabled di mobile — klik icon cart langsung
       navigate ke cart.php (lihat toggleMiniCart di customer.js). */
    .mini-cart {
        display: none !important;
    }
    /* Notifikasi di mobile — panel jadi sheet selebar viewport, ditambatkan
       tepat di bawah navbar agar tidak terpotong di sisi kiri/kanan. */
    .notif-panel {
        position: fixed;
        top: calc(var(--nav-height) + 8px);
        right: 12px;
        left: 12px;
        width: auto;
        max-width: none;
        max-height: calc(100vh - var(--nav-height) - 24px);
        display: flex;
        flex-direction: column;
    }
    .notif-panel-list {
        flex: 1;
        max-height: none;
    }
    /* Mobile hero layout lives in the mobile rebuild block at end of file. */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    .detail-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .detail-main-img {
        aspect-ratio: 3/2;
        border-radius: 16px;
        box-shadow: 0 8px 24px rgba(31,58,46,0.1);
    }
    .detail-img-col {
        position: static;
    }
    .detail-info-col {
        min-width: 0;
        overflow: hidden;
    }
    .detail-meta {
        grid-template-columns: 1fr;
        gap: 0.4rem;
    }
    .detail-meta-item {
        text-align: left;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.6rem 0.85rem;
    }
    .detail-actions {
        flex-direction: column;
    }
    .detail-actions .btn {
        width: 100%;
        flex: none;
    }
    .qty-row {
        justify-content: space-between;
    }
    .qty-ctrl {
        grid-template-columns: 44px 52px 44px;
        height: 44px;
    }
    .qty-num {
        line-height: 44px;
    }
    .detail-name {
        font-size: 1.4rem;
    }
    .detail-price {
        font-size: 1.3rem;
    }
    .project-info-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 480px) {
    .auth-card {
        padding: 1.75rem 1.25rem;
    }
    .success-card {
        padding: 2rem 1.25rem;
    }
    .cart-item {
        padding: 0.7rem 0.85rem;
        gap: 0.7rem;
    }
    .cart-item-thumb {
        width: 44px;
        height: 44px;
    }
    .cart-item-body {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.4rem;
    }
    .cart-item-right {
        width: 100%;
        justify-content: space-between;
    }
    .cart-bottom-bar {
        padding: 1.25rem;
    }
    .cart-bottom-total {
        font-size: 1.45rem;
    }
    .qty-ctrl {
        grid-template-columns: 44px 52px 44px;
        height: 44px;
    }
    .qty-num {
        line-height: 44px;
    }
    .cart-qty-btn {
        width: 36px;
        height: 36px;
    }
    .btn-remove-item {
        min-height: 40px;
        padding: 0 0.35rem;
        display: inline-flex;
        align-items: center;
    }
    .order-card-body {
        flex-direction: column;
        align-items: flex-start;
    }
    .order-total-val {
        margin-left: 0;
    }
    .checkout-section {
        padding: 1.25rem;
    }
    .menu-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }
    .menu-search-input {
        width: 100%;
    }
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* EXTRA NARROW PHONES (≤380px) — prevent horizontal overflow. */
@media (max-width: 380px) {
    html,
    body {
        overflow-x: clip;
    }

    .admin-preview-bar {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.35rem;
        padding: 0.3rem 0.5rem;
        text-align: center;
    }

    .admin-preview-label,
    .admin-preview-back {
        min-width: 0;
        max-width: 100%;
        white-space: normal;
        overflow-wrap: anywhere;
        justify-content: center;
    }

    .admin-preview-back {
        padding: 0.2rem 0.45rem;
    }

    .nav-container {
        padding: 0 0.75rem;
        gap: 0.5rem;
    }

    .logo-icon-img {
        width: 38px;
        height: 38px;
    }

    .logo-text strong {
        font-size: 0.9rem;
    }

    .logo-text span {
        font-size: 0.62rem;
        letter-spacing: 0.08em;
    }
}

@media (max-width: 300px) {
    :root {
        --admin-preview-height: 58px;
    }
}

/* PHONE LANDSCAPE (max-height ≤500px, touch) — compact navbar/preview bar only. */
@media (orientation: landscape) and (max-height: 500px) and (hover: none) and (pointer: coarse) {
    :root {
        --admin-preview-height: 36px;
        --nav-height: 56px;
    }

    .admin-preview-bar {
        min-height: 36px;
        padding: 0 1rem;
        font-size: 0.75rem;
    }
    .admin-preview-back {
        padding: 0.2rem 0.5rem;
        font-size: 0.72rem;
    }

    .navbar {
        height: var(--nav-height);
    }

    .nav-links,
    .nav-auth {
        display: none;
    }
    .nav-hamburger,
    .nav-cart-btn {
        display: flex;
    }
    .nav-container {
        padding: 0 0.9rem;
        gap: 0.6rem;
    }
    .logo-icon-img {
        width: 36px;
        height: 36px;
    }
    .logo-text strong {
        font-size: 0.82rem;
    }
    .logo-text span {
        font-size: 0.58rem;
    }
}

/* Android very short landscape — compact hero buttons only. */
@media (orientation: landscape) and (max-height: 430px) and (hover: none) and (pointer: coarse) {
    .hero-btn-primary,
    .hero-btn-secondary {
        padding: 0.48rem 0.95rem;
    }
}

/* ADMIN PREVIEW HERO FIT — keeps hero readable with the extra admin bar.
   --header-total-height is set in the admin preview bar section above. */

.preview-sticky-shell ~ .hero .hero-container {
    padding-top: clamp(1rem, 3vh, 2rem);
    padding-bottom: clamp(1rem, 3vh, 2rem);
}

.preview-sticky-shell ~ .hero .hero-desc {
    margin-top: clamp(0.85rem, 2vh, 1.35rem);
    margin-bottom: clamp(1rem, 2.5vh, 1.75rem);
}

.preview-sticky-shell ~ .hero .hero-stats {
    margin-top: clamp(1rem, 2.5vh, 2rem);
    padding-top: clamp(0.9rem, 2vh, 1.4rem);
}

@media (min-width: 1025px) {
    .preview-sticky-shell ~ .hero .hero-title {
        font-size: clamp(2.4rem, 4.4vw, 3.55rem);
    }

    .preview-sticky-shell ~ .hero .hero-visual {
        min-height: min(430px, calc(100svh - var(--header-total-height) - 3rem));
    }

    .preview-sticky-shell ~ .hero .hero-photo-frame {
        width: min(380px, 78%);
    }

    .preview-sticky-shell ~ .hero .hero-circle {
        width: 420px;
        height: 420px;
    }
}

@media (min-width: 1025px) and (max-height: 820px) {
    .preview-sticky-shell ~ .hero .hero-container {
        gap: 3rem;
    }

    .preview-sticky-shell ~ .hero .hero-label {
        margin-bottom: 1rem;
    }

    .preview-sticky-shell ~ .hero .hero-title {
        font-size: clamp(2.35rem, 4vw, 3.25rem);
    }

    .preview-sticky-shell ~ .hero .hero-visual {
        min-height: 380px;
    }

    .preview-sticky-shell ~ .hero .hero-photo-frame {
        width: min(340px, 74%);
    }

    .preview-sticky-shell ~ .hero .hero-circle {
        width: 380px;
        height: 380px;
    }
}

/* Admin preview on phones has less usable vertical space because the preview bar
   is part of the sticky header. Let the hero use document flow so bottom content
   is never clipped by the viewport or browser chrome. */
@media (max-width: 768px) {
    .preview-sticky-shell ~ .hero {
        display: block;
        height: auto;
        min-height: 0;
        overflow: hidden;
    }

    .preview-sticky-shell ~ .hero .hero-container {
        padding-top: clamp(2rem, 7vw, 2.75rem);
        padding-bottom: clamp(2.5rem, 8vw, 3.25rem);
    }
}

@media (max-width: 480px) {
    .preview-sticky-shell ~ .hero .hero-desc {
        margin-bottom: 1rem;
    }

    .preview-sticky-shell ~ .hero .hero-actions {
        row-gap: 0.75rem;
    }

    .preview-sticky-shell ~ .hero .hero-stats {
        margin-top: clamp(1.25rem, 1.5rem, 1.75rem);
        padding-top: 1rem;
    }
}


/* HERO · MOBILE REBUILD (≤768px)
   End-of-file placement wins over the global .hero svh rules.
   No viewport-height units; photo fixed-height; stats always visible. */
@media (max-width: 768px) {
    .hero {
        min-height: auto;
        height: auto;
        align-items: stretch;
    }
    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        /* rem-only padding — never viewport-height dependent */
        padding: 2.25rem 1.25rem
                 max(2rem, env(safe-area-inset-bottom, 0px));
        padding-left:  max(1.25rem, env(safe-area-inset-left,  0px));
        padding-right: max(1.25rem, env(safe-area-inset-right, 0px));
        text-align: center;
        align-items: stretch;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-label {
        margin-bottom: 0.85rem;
        font-size: 0.68rem;
    }

    .hero-title {
        font-size: clamp(2rem, 8.5vw, 2.6rem);
        line-height: 1.1;
        margin-bottom: 0;
    }

    .hero-title-jp {
        margin-top: 0.35rem;
    }

    .hero-desc {
        margin: 1rem auto 1.25rem;
        max-width: 36ch;
        font-size: 0.92rem;
        line-height: 1.6;
    }

    .hero-actions {
        justify-content: center;
        gap: 0.6rem;
        margin-bottom: 1.25rem;
    }
    .hero-btn-primary,
    .hero-btn-secondary {
        padding: 0.75rem 1.5rem;
        font-size: 0.88rem;
        min-height: 44px;
        justify-content: center;
    }

    /* ── PHOTO: landscape fixed-height crop ── */
    .hero-visual {
        position: relative;
        display: block;
        width: 100%;
        min-height: 0;
        transform: none;
        margin-top: 0.5rem;
    }
    .hero-photo-frame {
        width: 100%;
        max-width: 300px;
        height: 210px;
        aspect-ratio: auto;
        margin: 0 auto;
        border-radius: 20px;
        transform: none;
    }
    .hero-photo-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    /* Decorative ring/floats hidden on mobile. */
    .hero-circle,
    .hero-float-card {
        display: none;
    }

    /* ── STATS: always visible below the photo ── */
    .hero-stats {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        justify-content: center;
        align-items: start;
        gap: 0.75rem;
        width: 100%;
        margin: 1.25rem 0 0;
        padding-top: 1.25rem;
    }
    .hero-stats > div {
        min-width: 0;
        text-align: center;
    }
    .hero-stat-num {
        font-size: clamp(1.05rem, 5vw, 1.3rem);
        line-height: 1.05;
        white-space: nowrap;
    }
    .hero-stat-label {
        font-size: 0.62rem;
        letter-spacing: 0.04em;
        line-height: 1.35;
        margin-top: 0.3rem;
    }

    .hero + .section {
        padding-top: 3rem;
    }
}

/* ≤480px — small tweaks, same structure */
@media (max-width: 480px) {
    .hero-container {
        padding: 2rem 1rem max(1.75rem, env(safe-area-inset-bottom, 0px));
    }
    .hero-btn-primary,
    .hero-btn-secondary {
        width: min(100%, 240px);
    }
    .hero-photo-frame {
        max-width: 280px;
        height: 195px;
    }
}

/* ≤380px — shrink title & label slightly */
@media (max-width: 380px) {
    .hero-label {
        font-size: 0.58rem;
        letter-spacing: 0.14em;
        padding: 0.26rem 0.7rem;
    }
    .hero-title {
        font-size: clamp(1.65rem, 9vw, 2.1rem);
    }
    .hero-desc {
        font-size: 0.88rem;
        margin: 0.85rem auto 1rem;
    }
    .hero-photo-frame {
        max-width: 100%;
        height: 180px;
    }
    .hero-stats {
        gap: 0.5rem;
    }
    .hero-stat-num {
        font-size: clamp(0.95rem, 4.8vw, 1.15rem);
    }
    .hero-stat-label {
        font-size: 0.58rem;
    }
}
