/* Toko Tani — design system (e-commerce sederhana) */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
    --tt-primary: #059669;
    --tt-primary-hover: #047857;
    --tt-primary-soft: #ecfdf5;
    --tt-accent: #f59e0b;
    --tt-accent-soft: #fffbeb;
    --tt-ink: #0f172a;
    --tt-muted: #64748b;
    --tt-border: #e2e8f0;
    --tt-surface: #ffffff;
    --tt-bg: #f8fafc;
    --tt-radius-sm: 0.5rem;
    --tt-radius: 0.75rem;
    --tt-radius-lg: 1rem;
    --tt-radius-xl: 1.25rem;
    --tt-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
    --tt-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
    --tt-shadow-lg: 0 12px 24px -8px rgba(15, 23, 42, 0.12);
    --tt-font: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --tt-header-h: 72px;
    --tt-topbar-h: 36px;
    /* Jarak dari atas viewport saat filter/galeri sticky — sejajar tepat di bawah navbar */
    --tt-navbar-sticky-offset: 5.25rem;
}

@media (min-width: 992px) {
    :root {
        --tt-navbar-sticky-offset: 5.5rem;
    }
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--tt-font);
    background-color: var(--tt-bg);
    color: var(--tt-ink);
    -webkit-font-smoothing: antialiased;
    line-height: 1.6;
}

/* --- Layout shop --- */
.page-shop {
    min-height: 50vh;
}

.page-shop__section {
    padding-top: 1.5rem;
    padding-bottom: 2rem;
}

@media (min-width: 992px) {
    .page-shop__section {
        padding-top: 2rem;
        padding-bottom: 3rem;
    }
}

/* --- Landing beranda (guest) --- */
.landing-beranda {
    scroll-margin-top: calc(var(--tt-navbar-sticky-offset) + 0.5rem);
}

.landing-beranda--hero {
    margin-top: 0;
    padding-top: 0;
}

/* Hero: fokus teks + pencarian, responsif */
.landing-hero {
    position: relative;
    overflow: hidden;
    border-radius: var(--tt-radius-xl);
    padding: 1.5rem 1.25rem;
    box-shadow: var(--tt-shadow-lg);
    background: linear-gradient(135deg, #059669 0%, #047857 48%, #065f46 100%);
}

@media (min-width: 576px) {
    .landing-hero {
        padding: 2rem 1.75rem;
    }
}

@media (min-width: 992px) {
    .landing-hero {
        padding: 2.75rem 3rem;
    }
}

.landing-hero:not(.landing-hero--photo)::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 100% 0%, rgba(255, 255, 255, 0.12), transparent 55%);
    pointer-events: none;
}

.landing-hero__inner {
    position: relative;
    z-index: 1;
}

/* Hero dengan foto pertanian sebagai latar kartu (guest beranda) */
.landing-hero--photo {
    background-color: #064e3b;
    min-height: clamp(22rem, 62vw, 34rem);
    padding-top: 1.75rem;
    padding-bottom: 1.75rem;
}

.landing-hero--photo::after {
    display: none;
}

.landing-hero__bg {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background-image: var(--landing-hero-bg);
    background-size: cover;
    background-position: center 38%;
    background-repeat: no-repeat;
    z-index: 0;
}

.landing-hero__scrim {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
        118deg,
        rgba(6, 78, 54, 0.93) 0%,
        rgba(4, 120, 87, 0.68) 44%,
        rgba(15, 23, 42, 0.38) 78%,
        rgba(15, 23, 42, 0.22) 100%
    );
}

.landing-hero--photo .landing-hero__inner {
    z-index: 2;
}

.landing-hero__brand {
    display: block;
}

/* Logo di hero: tanpa kartu / latar putih (PNG transparan) */
.landing-hero__logo--nobg {
    width: auto;
    max-width: min(78vw, 260px);
    height: auto;
    max-height: 52px;
    object-fit: contain;
    object-position: left center;
    display: block;
    filter: drop-shadow(0 2px 16px rgba(0, 0, 0, 0.45)) drop-shadow(0 0 1px rgba(255, 255, 255, 0.2));
}

@media (min-width: 992px) {
    .landing-hero--photo {
        min-height: clamp(24rem, 44vw, 36rem);
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }

    .landing-hero__logo--nobg {
        max-height: 72px;
        max-width: 300px;
    }
}

.navbar-brand-logo {
    height: 40px;
    width: auto;
    max-width: min(52vw, 200px);
    object-fit: contain;
    object-position: left center;
    filter: drop-shadow(0 1px 2px rgba(15, 23, 42, 0.06));
}

.site-footer__logo {
    height: auto;
    max-height: 44px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    object-position: left center;
    filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.35));
}

.landing-hero__badge {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #065f46;
    background: rgba(255, 255, 255, 0.95);
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    margin-bottom: 1rem;
}

.landing-hero__title {
    font-size: clamp(1.35rem, 4.5vw, 2.125rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.2;
    color: #fff;
    margin-bottom: 0.75rem;
    max-width: 36rem;
}

.landing-hero--photo .landing-hero__title {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2), 0 4px 28px rgba(0, 0, 0, 0.25);
}

.landing-hero--photo .landing-hero__lead {
    text-shadow: 0 1px 18px rgba(0, 0, 0, 0.2);
}

.landing-hero__lead {
    font-size: clamp(0.875rem, 2.2vw, 1rem);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 0;
    max-width: 34rem;
}

.landing-search {
    margin-top: 1.25rem;
    max-width: 28rem;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: var(--tt-radius-lg);
    padding: 0.35rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.landing-search .form-control {
    background: transparent !important;
    border: none !important;
    color: #fff !important;
    box-shadow: none !important;
    font-size: 0.9375rem;
    min-height: 2.75rem;
}

.landing-search .form-control::placeholder {
    color: rgba(255, 255, 255, 0.65);
}

.landing-search .input-group-text {
    background: transparent !important;
    border: none !important;
    color: rgba(255, 255, 255, 0.85) !important;
}

.landing-search .btn-light {
    background: #fff !important;
    border: none !important;
    color: #047857 !important;
    font-weight: 600;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    border-radius: var(--tt-radius) !important;
}

.landing-search .btn-light:hover {
    background: #f0fdf4 !important;
    color: #065f46 !important;
}

@media (max-width: 575.98px) {
    .landing-search .input-group {
        flex-wrap: wrap;
    }

    .landing-search .input-group > :not(.btn) {
        flex: 1 1 100%;
        min-width: 0;
    }

    .landing-search .btn-light {
        width: 100%;
        margin-top: 0.25rem;
    }
}

/* Baris kepercayaan ringkas di bawah hero */
.landing-trust {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

@media (min-width: 576px) {
    .landing-trust {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
}

.landing-trust__item {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.45;
}

.landing-trust__item i {
    font-size: 1.15rem;
    opacity: 0.95;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.landing-trust__item strong {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 0.15rem;
}

/* Filter kategori mobile — “kartu” ringkas */
.landing-filter-mobile {
    background: var(--tt-surface);
    border: 1px solid var(--tt-border);
    border-radius: var(--tt-radius-lg);
    padding: 1rem 1rem 0.75rem;
    margin-bottom: 1.25rem;
    box-shadow: var(--tt-shadow-sm);
}

.landing-filter-mobile__label {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--tt-muted);
    margin-bottom: 0.65rem;
}

#katalog-produk {
    scroll-margin-top: calc(var(--tt-navbar-sticky-offset) + 1rem);
}

/* --- Navbar --- */
.navbar-marketplace {
    background: rgba(255, 255, 255, 0.92) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--tt-border) !important;
    padding-top: 0.75rem !important;
    padding-bottom: 0.75rem !important;
    box-shadow: var(--tt-shadow-sm);
}

/* Navbar sticky harus di atas konten lain yang juga sticky (filter katalog, dll.) */
.navbar-marketplace.sticky-top {
    z-index: 1030;
}

/* Filter kategori beranda: sticky di bawah navbar, tidak menimpa navbar */
.shop-filter-sticky {
    position: -webkit-sticky;
    position: sticky;
    top: calc(env(safe-area-inset-top, 0px) + var(--tt-navbar-sticky-offset));
    z-index: 10;
    max-height: calc(100vh - env(safe-area-inset-top, 0px) - var(--tt-navbar-sticky-offset) - 1rem);
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

/* Galeri produk (halaman detail): sticky di lg+ — di bawah navbar */
.shop-sticky-media {
    position: -webkit-sticky;
    position: sticky;
    top: calc(env(safe-area-inset-top, 0px) + var(--tt-navbar-sticky-offset));
    z-index: 10;
}

@media (max-width: 991.98px) {
    .shop-sticky-media {
        position: relative;
        top: auto;
        z-index: auto;
    }
}

.navbar-marketplace .navbar-brand {
    font-weight: 700;
    font-size: 1.125rem;
    letter-spacing: -0.02em;
    color: var(--tt-ink) !important;
}

.navbar-marketplace .nav-link {
    font-weight: 500;
    font-size: 0.9375rem;
    padding: 0.5rem 0.85rem !important;
    border-radius: var(--tt-radius-sm);
    color: var(--tt-muted) !important;
    transition: color 0.15s ease, background 0.15s ease;
}

.navbar-marketplace .nav-link:hover {
    color: var(--tt-primary) !important;
    background: var(--tt-primary-soft);
}

.navbar-marketplace .nav-link.active {
    color: var(--tt-primary) !important;
    background: var(--tt-primary-soft);
    font-weight: 600;
}

.navbar-marketplace .navbar-toggler {
    padding: 0.5rem 0.65rem;
    border-radius: var(--tt-radius);
    border: 1px solid var(--tt-border) !important;
}

.navbar-marketplace .navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.25);
}

/* --- Top bar --- */
.top-bar-dark {
    font-size: 0.8125rem;
    letter-spacing: 0.01em;
}

/* --- Info strip --- */
.info-strip-admin {
    background: linear-gradient(180deg, #fffbeb 0%, #fef9c3 100%);
    border-bottom: 1px solid rgba(245, 158, 11, 0.2);
}

.info-strip-admin p {
    font-size: 0.8125rem;
}

@media (min-width: 768px) {
    .info-strip-admin p {
        font-size: 0.875rem;
    }
}

/* --- Footer (dark) --- */
.site-footer {
    background: linear-gradient(180deg, #0f172a 0%, #020617 100%);
    color: #cbd5e1;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
    margin-top: auto;
}

.site-footer__brand-icon {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--tt-radius);
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    font-size: 1.25rem;
}

.site-footer__title {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #94a3b8;
    margin-bottom: 1rem;
}

.site-footer .footer-link {
    color: #e2e8f0;
    text-decoration: none;
    font-size: 0.9375rem;
    transition: color 0.15s ease;
}

.site-footer .footer-link:hover {
    color: #6ee7b7;
}

.site-footer .social-link {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}

.site-footer .social-link:hover {
    background: rgba(5, 150, 105, 0.3);
    color: #a7f3d0;
    border-color: rgba(52, 211, 153, 0.35);
    transform: translateY(-2px);
}

.site-footer .text-secondary {
    color: #94a3b8 !important;
}

.site-footer__map {
    border-color: rgba(148, 163, 184, 0.2) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.site-footer__btn-maps {
    color: #a7f3d0;
    border: 1px solid rgba(52, 211, 153, 0.45);
    background: rgba(5, 150, 105, 0.12);
}

.site-footer__btn-maps:hover {
    color: #ecfdf5;
    background: rgba(5, 150, 105, 0.28);
    border-color: rgba(110, 231, 183, 0.55);
}

.site-footer__trust-card {
    background: rgba(15, 23, 42, 0.65);
    border-color: rgba(148, 163, 184, 0.15) !important;
}

.site-footer__trust-icon {
    color: #34d399;
}

.site-footer__trust-title {
    color: #f1f5f9;
}

.site-footer__trust-text {
    color: #94a3b8;
}

.site-footer__divider {
    border: 0;
    border-top: 1px solid rgba(148, 163, 184, 0.15);
    opacity: 1;
}

.site-footer__bottom {
    color: #94a3b8;
}

.site-footer .list-unstyled i.bi {
    color: #64748b;
    opacity: 0.95;
}

/* --- Pagination (frontend & admin, konsisten) --- */
.tt-pagination {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    width: 100%;
    max-width: 100%;
}

.tt-pagination__meta {
    color: var(--tt-muted);
    text-align: center;
}

.tt-pagination__mobile .pagination,
.tt-pagination__desktop .pagination {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.25rem;
    margin-bottom: 0;
}

.tt-pagination .page-link {
    border-radius: var(--tt-radius-sm);
    padding: 0.35rem 0.6rem;
    min-width: 2.25rem;
    text-align: center;
    border: 1px solid var(--tt-border);
    color: var(--tt-ink);
    font-size: 0.8125rem;
    line-height: 1.4;
    background: var(--tt-surface);
}

.tt-pagination .page-item.active .page-link {
    background: var(--tt-primary);
    border-color: var(--tt-primary);
    color: #fff;
    font-weight: 600;
}

.tt-pagination .page-item.disabled .page-link {
    background: var(--tt-bg);
    color: var(--tt-muted);
    border-color: var(--tt-border);
    opacity: 0.85;
}

.tt-pagination .page-link:hover:not(.active) {
    background: var(--tt-primary-soft);
    border-color: rgba(5, 150, 105, 0.35);
    color: var(--tt-primary-hover);
}

.tt-pagination__arrow {
    font-weight: 700;
    font-size: 1rem;
    padding-left: 0.65rem;
    padding-right: 0.65rem;
}

.tt-pagination__ellipsis {
    border: none !important;
    background: transparent !important;
    color: var(--tt-muted) !important;
}

@media (min-width: 576px) {
    .tt-pagination {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem 1rem;
    }

    .tt-pagination__meta {
        text-align: left;
        flex: 1 1 auto;
        min-width: min(100%, 14rem);
        margin-bottom: 0;
    }

    .tt-pagination__desktop {
        justify-content: flex-end !important;
        width: auto !important;
        flex: 0 1 auto;
    }
}

.tt-pagination-wrap {
    width: 100%;
    padding-left: 0.25rem;
    padding-right: 0.25rem;
}

/* --- Hero --- */
.hero-shop {
    position: relative;
    overflow: hidden;
    border-radius: var(--tt-radius-xl);
    padding: 1.75rem 1.5rem;
    box-shadow: var(--tt-shadow-lg);
}

@media (min-width: 768px) {
    .hero-shop {
        padding: 2.5rem 2.5rem;
    }
}

@media (min-width: 992px) {
    .hero-shop {
        padding: 3rem 3rem;
    }
}

.hero-shop__title {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.2;
    margin-bottom: 0.75rem;
}

.hero-shop__lead {
    font-size: clamp(0.875rem, 2vw, 1rem);
    line-height: 1.65;
    opacity: 0.95;
}

/* --- Section heading --- */
.section-head {
    margin-bottom: 1.25rem;
}

.section-head__title {
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--tt-ink);
    margin-bottom: 0.25rem;
}

@media (min-width: 768px) {
    .section-head__title {
        font-size: 1.25rem;
    }
}

.section-head__sub {
    font-size: 0.875rem;
    color: var(--tt-muted);
    margin-bottom: 0;
}

/* --- Product cards (shop) — override global card when needed --- */
.product-card {
    border: 1px solid var(--tt-border) !important;
    border-radius: var(--tt-radius-lg) !important;
    box-shadow: var(--tt-shadow-sm) !important;
    background: var(--tt-surface);
    transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
    overflow: hidden;
}

.product-card:hover {
    box-shadow: var(--tt-shadow) !important;
    transform: translateY(-4px);
    border-color: rgba(5, 150, 105, 0.2) !important;
}

.product-card__media {
    position: relative;
    aspect-ratio: 1 / 1;
    background: var(--tt-bg);
}

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

.product-card__body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-card__cat {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--tt-muted);
    margin-bottom: 0.35rem;
}

.product-card__name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--tt-ink);
    line-height: 1.35;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.7em;
}

.product-card__footer {
    margin-top: auto;
    padding-top: 0.5rem;
    border-top: 1px solid var(--tt-border);
}

/* --- Filter sidebar (desktop) --- */
.filter-panel .list-group-item {
    border-radius: var(--tt-radius) !important;
    margin-bottom: 0.35rem;
    font-size: 0.9375rem;
    transition: background 0.15s ease, color 0.15s ease;
}

.filter-panel .list-group-item:hover {
    background: var(--tt-bg);
}

.filter-panel .list-group-item.bg-emerald-50 {
    border: 1px solid rgba(5, 150, 105, 0.15);
}

/* --- Mobile category scroller --- */
.category-scroll {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.25rem;
    margin-bottom: 0.5rem;
    scrollbar-width: thin;
}

.category-scroll::-webkit-scrollbar {
    height: 4px;
}

.category-scroll .btn {
    white-space: nowrap;
    flex-shrink: 0;
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
}

/* --- Breadcrumb --- */
.breadcrumb-shop {
    padding: 0.75rem 1rem;
    background: var(--tt-surface);
    border: 1px solid var(--tt-border);
    border-radius: var(--tt-radius);
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

/* --- Floating WA --- */
.floating-wa {
    position: fixed;
    bottom: calc(1.25rem + env(safe-area-inset-bottom, 0));
    right: calc(1rem + env(safe-area-inset-right, 0));
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25d366;
    color: #fff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
    z-index: 1040;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.floating-wa:hover {
    transform: scale(1.06);
    color: #fff !important;
    box-shadow: 0 12px 28px rgba(37, 211, 102, 0.5);
}

.cart-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 1.125rem;
    height: 1.125rem;
    padding: 0 4px;
    background: #ef4444;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    line-height: 1.125rem;
    text-align: center;
    border-radius: 999px;
    border: 2px solid #fff;
}

/* --- Buttons (brand) --- */
.btn-tt-primary {
    background: var(--tt-primary);
    border-color: var(--tt-primary);
    color: #fff;
    font-weight: 600;
}

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

.btn-tt-ghost {
    background: transparent;
    border: 1px solid var(--tt-border);
    color: var(--tt-ink);
    font-weight: 500;
}

.btn-tt-ghost:hover {
    background: var(--tt-bg);
    border-color: var(--tt-muted);
}

/* --- Auth cards --- */
.auth-card {
    border: 1px solid var(--tt-border) !important;
    border-radius: var(--tt-radius-xl) !important;
    box-shadow: var(--tt-shadow) !important;
    background: var(--tt-surface);
}

.auth-card .form-control,
.auth-card .form-select {
    font-size: 0.9375rem;
    line-height: 1.45;
    padding: 0.45rem 0.85rem;
    min-height: 2.5rem;
}

.auth-card textarea.form-control {
    min-height: auto;
}

/* Cart quantity controls */
.btn-cart-qty {
    background: #fff;
    border: 1px solid var(--tt-border);
    color: var(--tt-ink);
}
.btn-cart-qty:hover {
    background: var(--tt-bg);
}
.btn-cart-remove {
    background: #fef2f2;
    color: #dc2626;
    border: none;
}
.btn-cart-remove:hover {
    background: #fee2e2;
    color: #b91c1c;
}

/* --- Legacy compatibility --- */
.bg-emerald-gradient {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.glass-panel {
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--tt-radius-xl);
}

.text-emerald-600 { color: #059669 !important; }
.bg-emerald-50 { background-color: #ecfdf5 !important; }
.bg-emerald-100 { background-color: #d1fae5 !important; }

.text-slate-400 { color: #94a3b8 !important; }
.text-slate-500 { color: #64748b !important; }
.text-slate-600 { color: #475569 !important; }
.text-slate-700 { color: #334155 !important; }
.text-slate-800 { color: #1e293b !important; }

.tracking-tight { letter-spacing: -0.025em; }

.grayscale {
    filter: grayscale(100%);
}

/* Default Bootstrap cards outside shop — keep subtle */
.card:not(.product-card):not(.auth-card) {
    border-radius: var(--tt-radius-lg) !important;
}

/* --- Guest pages: checkout, pembayaran, pesanan (selaras beranda) --- */
.fw-extrabold {
    font-weight: 800;
}

/* Judul halaman inner (bukan hero landing) */
.page-inner-head__title {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--tt-ink);
    margin-bottom: 0.35rem;
}

.page-inner-head__lead {
    font-size: 0.875rem;
    color: var(--tt-muted);
    margin-bottom: 0;
}

/* Amber / info (strip & alert checkout) — dipakai layout + checkout */
.text-amber-600 { color: #d97706 !important; }
.text-amber-700 { color: #b45309 !important; }
.text-amber-800 { color: #92400e !important; }
.text-amber-950 { color: #451a03 !important; }
.border-amber-100 { border-color: #fef3c7 !important; }
.border-amber-200 { border-color: #fde68a !important; }

.alert-amber {
    background: var(--tt-accent-soft);
    color: #78350f;
    border: 1px solid rgba(245, 158, 11, 0.35);
}

/* Tombol sekunder outline — daftar pesanan, dll. */
.btn-tt-outline {
    border: 2px solid var(--tt-border);
    color: var(--tt-muted);
    background: transparent;
    font-weight: 600;
}

.btn-tt-outline:hover {
    background: var(--tt-bg);
    color: var(--tt-ink);
    border-color: #cbd5e1;
}

/* Outline hijau (CTA WA sekunder) */
.btn-outline-emerald {
    color: var(--tt-primary);
    border: 2px solid var(--tt-primary);
    background: transparent;
    font-weight: 600;
}

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

/* Alias tombol hijau lama → sama dengan brand primary */
.btn-emerald {
    background: var(--tt-primary);
    border-color: var(--tt-primary);
    color: #fff;
    font-weight: 700;
}

.btn-emerald:hover,
.btn-emerald:focus {
    background: var(--tt-primary-hover);
    border-color: var(--tt-primary-hover);
    color: #fff;
}

/* Kartu daftar pesanan */
.hover-up {
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.hover-up:hover {
    box-shadow: var(--tt-shadow-lg) !important;
    transform: translateY(-2px);
}

/* Status pesanan */
.bg-warning-subtle {
    background-color: #fffbeb !important;
    border: 1px solid #fef3c7 !important;
}

.bg-blue-50 {
    background-color: #eff6ff !important;
    border: 1px solid #dbeafe !important;
}

.bg-danger-subtle {
    background-color: #fef2f2 !important;
    border: 1px solid #fee2e2 !important;
}

.text-blue-600 { color: #2563eb !important; }
.text-red-700 { color: #b91c1c !important; }

.text-emerald-800 { color: #065f46 !important; }

/* Logo di kartu auth */
.auth-card__logo-wrap {
    margin-bottom: 1rem;
}

.auth-card__logo {
    height: 44px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    object-position: center;
    filter: drop-shadow(0 1px 3px rgba(15, 23, 42, 0.08));
}

/* Ikon pembayaran (snap) */
.guest-pay-icon {
    width: 80px;
    height: 80px;
}
