:root {
    --green-950: #0b2f22;
    --green-900: #123f2d;
    --green-800: #18583d;
    --green-700: #21734d;
    --green-500: #43a66f;
    --green-100: #e8f6ed;
    --cream: #fff9df;
    --yellow: #ffd95a;
    --ink: #153529;
    --muted: #6c7e75;
    --line: rgba(22, 71, 50, .11);
    --surface: rgba(255, 255, 255, .78);
    --shadow-sm: 0 8px 24px rgba(18, 63, 45, .07);
    --shadow-lg: 0 22px 60px rgba(18, 63, 45, .13);
    --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    color: var(--ink);
    background:
        radial-gradient(circle at 5% 25%, rgba(255, 217, 90, .08), transparent 22rem),
        radial-gradient(circle at 100% 70%, rgba(67, 166, 111, .08), transparent 28rem),
        #f8fbf9;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}
main { min-height: 58vh; }
a { color: var(--green-700); }
img { max-width: 100%; }

.glass {
    border: 1px solid rgba(255, 255, 255, .9) !important;
    background: var(--surface) !important;
    box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, .7) !important;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}
.glass-dark {
    border: 1px solid rgba(255, 255, 255, .1);
    background: linear-gradient(135deg, rgba(11, 47, 34, .98), rgba(24, 88, 61, .95));
    box-shadow: 0 26px 60px rgba(11, 47, 34, .2);
}

.main-navbar {
    min-height: 76px;
    padding: .65rem 0;
    background: rgba(11, 47, 34, .92);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    box-shadow: 0 8px 30px rgba(9, 42, 29, .18);
    backdrop-filter: blur(20px) saturate(150%);
    z-index: 1040;
}
.brand-mark {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    color: var(--green-950);
    background: linear-gradient(145deg, #ffe477, var(--yellow));
    box-shadow: 0 7px 18px rgba(255, 217, 90, .2), inset 0 1px 0 rgba(255, 255, 255, .65);
    font-size: .84rem;
    font-weight: 900;
    letter-spacing: -.04em;
}
.brand-copy { display: flex; flex-direction: column; line-height: 1.05; }
.brand-copy small { margin-top: .2rem; color: rgba(255, 255, 255, .48); font-size: .57rem; font-weight: 600; letter-spacing: .05em; }
.navbar .nav-link { position: relative; padding: .55rem .72rem !important; color: rgba(255, 255, 255, .73); font-size: .9rem; font-weight: 650; transition: color .2s ease; }
.navbar .nav-link::after { content: ""; position: absolute; right: .7rem; bottom: .25rem; left: .7rem; height: 2px; border-radius: 9px; background: var(--yellow); transform: scaleX(0); transition: transform .2s ease; }
.navbar .nav-link:hover, .navbar .nav-link.active { color: #fff; }
.navbar .nav-link.active::after { transform: scaleX(1); }
.nav-search { position: relative; display: flex; flex: 1 1 260px; max-width: 350px; align-items: center; padding: .24rem; border: 1px solid rgba(255, 255, 255, .13); border-radius: 999px; background: rgba(255, 255, 255, .08); transition: background .2s, border-color .2s; }
.nav-search:focus-within { border-color: rgba(255, 217, 90, .55); background: rgba(255, 255, 255, .13); }
.nav-search-icon { padding-left: .7rem; color: rgba(255, 255, 255, .65); font-size: 1.15rem; }
.nav-search input { min-width: 0; width: 100%; padding: .4rem .45rem; color: #fff; border: 0; outline: 0; background: transparent; font-size: .82rem; }
.nav-search input::placeholder { color: rgba(255, 255, 255, .5); }
.nav-search button { padding: .42rem .8rem; color: var(--green-950); border: 0; border-radius: 999px; background: var(--yellow); font-size: .75rem; font-weight: 800; }
.user-chip { display: inline-flex; align-items: center; gap: .45rem; padding: .25rem .65rem .25rem .25rem; color: #fff; border: 1px solid rgba(255,255,255,.12); border-radius: 999px; background: rgba(255,255,255,.08); font-size: .76rem; font-weight: 700; }
.user-chip > b { display: grid; place-items: center; width: 25px; height: 25px; color: var(--green-950); border-radius: 50%; background: var(--yellow); font-size: .68rem; }
.user-chip > span { color: rgba(255,255,255,.86); }
.cart-nav-link { display: flex !important; align-items: center; gap: .42rem; }
.cart-count-badge { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 .35rem; color: var(--green-950); background: var(--yellow); border-radius: 999px; font-size: .68rem; font-weight: 900; }

.toast-container { top: 86px !important; z-index: 1090; }
.app-toast { overflow: hidden; width: min(380px, calc(100vw - 2rem)); margin-bottom: .65rem; border: 1px solid rgba(255,255,255,.95); border-radius: 17px; background: rgba(255,255,255,.96); box-shadow: var(--shadow-lg); backdrop-filter: blur(16px); }
.toast-indicator { width: 5px; align-self: stretch; background: var(--green-500); }
.toast-warning .toast-indicator { background: #f0ad00; }
.toast-danger .toast-indicator { background: #dc3545; }
.toast-info .toast-indicator { background: #0d6efd; }
.toast-body { font-size: .9rem; font-weight: 600; }

.stock-announcement { color: #604800; background: linear-gradient(90deg, #fff5c9, #fff9df); border-bottom: 1px solid rgba(210, 164, 0, .2); }
.announcement-dot { flex: 0 0 auto; width: 9px; height: 9px; border-radius: 50%; background: #e29a00; animation: stock-pulse 1.8s infinite; }
@keyframes stock-pulse { 70% { box-shadow: 0 0 0 8px rgba(226,154,0,0); } 100% { box-shadow: 0 0 0 0 rgba(226,154,0,0); } }

.btn { border-radius: 12px; font-weight: 700; transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-success { color: #fff; border-color: var(--green-700); background: linear-gradient(135deg, var(--green-700), var(--green-800)); box-shadow: 0 8px 18px rgba(33,115,77,.18); }
.btn-success:hover, .btn-success:focus { border-color: var(--green-900); background: var(--green-900); box-shadow: 0 11px 24px rgba(18,63,45,.24); }
.btn-outline-success { color: var(--green-700); border-color: rgba(33,115,77,.38); }
.btn-outline-success:hover { border-color: var(--green-700); background: var(--green-700); }
.btn-glass { color: var(--green-900); border: 1px solid rgba(18,63,45,.14); background: rgba(255,255,255,.52); box-shadow: var(--shadow-sm); backdrop-filter: blur(10px); }
.btn-shimmer { position: relative; overflow: hidden; }
.btn-shimmer::after { content: ""; position: absolute; top: -50%; bottom: -50%; left: -45%; width: 28%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.42), transparent); transform: skewX(-20deg); animation: shimmer 3.8s ease-in-out infinite; }
@keyframes shimmer { 0%, 60% { left: -45%; } 85%, 100% { left: 125%; } }
.btn.is-loading { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; cursor: wait; }

.hero-section { position: relative; overflow: hidden; min-height: 650px; background: radial-gradient(circle at 82% 18%, rgba(255,217,90,.48), transparent 18rem), linear-gradient(135deg, #fffce9 0%, #eff9f2 55%, #e3f4e9 100%); }
.hero-section::before { content: ""; position: absolute; top: -12rem; left: -10rem; width: 31rem; height: 31rem; border: 1px solid rgba(33,115,77,.11); border-radius: 50%; box-shadow: 0 0 0 60px rgba(33,115,77,.025), 0 0 0 120px rgba(33,115,77,.018); }
.hero-content { position: relative; z-index: 1; padding: 7rem 0; }
.hero-badge { display: inline-flex; align-items: center; gap: .55rem; padding: .5rem .78rem; color: var(--green-800); border: 1px solid rgba(33,115,77,.12); border-radius: 999px; background: rgba(255,255,255,.55); font-size: .78rem; font-weight: 750; }
.hero-badge span { width: 7px; height: 7px; border-radius: 50%; background: var(--green-500); box-shadow: 0 0 0 5px rgba(67,166,111,.13); }
.hero-title { max-width: 760px; font-size: clamp(2.75rem, 6.7vw, 5.5rem); font-weight: 850; line-height: .98; letter-spacing: -.06em; }
.hero-highlight { position: relative; color: var(--green-700); white-space: nowrap; }
.hero-highlight::after { content: ""; position: absolute; right: 0; bottom: .02em; left: 0; z-index: -1; height: .14em; border-radius: 999px; background: var(--yellow); transform: rotate(-1deg); }
.hero-lead { max-width: 650px; line-height: 1.75; }
.hero-trust { display: flex; align-items: center; gap: 1.4rem; }
.hero-trust span { display: flex; flex-direction: column; }
.hero-trust b { color: var(--green-900); font-size: 1rem; }
.hero-trust small { color: var(--muted); font-size: .72rem; }
.hero-trust i { width: 1px; height: 30px; background: var(--line); }
.hero-visual { position: relative; min-height: 410px; padding: 2rem; border-radius: 38px; transform: rotate(1.5deg); }
.hero-visual-card { position: relative; z-index: 2; display: flex; align-items: center; gap: 1rem; }
.mini-icon { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 19px; background: var(--cream); font-size: 1.7rem; }
.hero-visual-card div:last-child { display: flex; flex-direction: column; }
.hero-visual-card small, .budget-preview small { color: var(--muted); }
.hero-visual-card strong { font-size: 1.15rem; }
.budget-preview { position: absolute; right: 2rem; bottom: 4rem; left: 2rem; z-index: 2; padding: 1.5rem; border: 1px solid rgba(18,63,45,.1); border-radius: 24px; background: rgba(255,255,255,.86); box-shadow: var(--shadow-lg); }
.budget-preview > span { display: block; color: var(--muted); font-size: .75rem; }
.budget-preview > strong { display: block; margin: .35rem 0 1rem; color: var(--green-800); font-size: 2rem; }
.budget-bar { height: 9px; margin-bottom: .8rem; overflow: hidden; border-radius: 999px; background: #e5eee8; }
.budget-bar i { display: block; width: 72%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--green-500), var(--yellow)); }
.hero-orb { position: absolute; border-radius: 50%; filter: blur(1px); }
.orb-one { top: 70px; right: 35px; width: 130px; height: 130px; background: rgba(255,217,90,.62); }
.orb-two { top: 150px; left: 30px; width: 80px; height: 80px; background: rgba(67,166,111,.2); }
.floating-chip { position: absolute; z-index: 3; padding: .65rem .85rem; border: 1px solid rgba(255,255,255,.9); border-radius: 999px; background: rgba(255,255,255,.88); box-shadow: var(--shadow-sm); font-size: .72rem; font-weight: 750; transform: rotate(-1.5deg); }
.floating-chip span { display: inline-block; width: 7px; height: 7px; margin-right: .35rem; border-radius: 50%; background: #35a766; }
.chip-stock { top: 43%; right: -22px; }
.chip-save { bottom: 10px; left: 28px; }

.eyebrow { color: var(--green-700); font-size: .73rem; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.section-title { font-weight: 850; letter-spacing: -.04em; }
.section-heading { max-width: 650px; }
.section-link { display: inline-flex; gap: .4rem; align-items: center; font-weight: 750; text-decoration: none; }
.section-link span { transition: transform .2s; }
.section-link:hover span { transform: translateX(3px); }
.feature-tile { border-radius: var(--radius); transition: transform .25s ease, box-shadow .25s ease; }
.feature-tile:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg) !important; }
.feature-icon { display: inline-grid; place-items: center; width: 56px; height: 56px; color: var(--green-700); border-radius: 18px; background: linear-gradient(145deg, var(--cream), #eaf7ed); font-size: 1.45rem; font-weight: 900; }
.budget-panel { overflow: hidden; color: #fff; border-radius: 30px; }
.budget-form { border-radius: 18px; background: rgba(255,255,255,.1); }
.budget-input { display: flex; align-items: center; gap: .5rem; padding: .45rem; }
.budget-input > span { padding-left: .7rem; color: rgba(255,255,255,.7); font-weight: 800; }
.budget-input input { min-width: 0; flex: 1; padding: .75rem .3rem; color: #fff; border: 0; outline: 0; background: transparent; font-size: 1.2rem; font-weight: 750; }
.budget-input input::placeholder { color: rgba(255,255,255,.4); }

.page-header { position: relative; overflow: hidden; background: linear-gradient(120deg, rgba(232,246,237,.95), rgba(255,249,223,.9)); border-bottom: 1px solid var(--line); }
.page-header::after { content: ""; position: absolute; top: -90px; right: 7%; width: 230px; height: 230px; border: 50px solid rgba(67,166,111,.055); border-radius: 50%; }
.checkout-progress { position: relative; z-index: 1; display: flex; max-width: 230px; align-items: center; }
.checkout-progress span { display: grid; place-items: center; flex: 0 0 30px; height: 30px; color: var(--muted); border: 1px solid var(--line); border-radius: 50%; background: rgba(255,255,255,.7); font-size: .72rem; font-weight: 850; }
.checkout-progress span.active, .checkout-progress span.done { color: #fff; border-color: var(--green-700); background: var(--green-700); }
.checkout-progress i { flex: 1; height: 1px; background: rgba(33,115,77,.22); }
.catalog-count { display: inline-flex; flex-direction: column; color: var(--green-700); font-size: 2rem; font-weight: 850; line-height: 1; }
.catalog-count small { margin-top: .35rem; color: var(--muted); font-size: .7rem; font-weight: 650; }

.form-control, .form-select { min-height: 48px; border-color: rgba(18,63,45,.14); border-radius: 13px; background-color: rgba(255,255,255,.82); box-shadow: none !important; }
.form-control:focus, .form-select:focus { border-color: var(--green-500); background-color: #fff; box-shadow: 0 0 0 .22rem rgba(67,166,111,.13) !important; }
.form-panel, .admin-panel, .auth-card { border-radius: var(--radius); }
.form-page-width { max-width: 940px; }
.form-section-icon { display: grid; place-items: center; width: 42px; height: 42px; color: var(--green-700); border-radius: 14px; background: var(--green-100); font-weight: 900; }
.image-preview-card { display: flex; align-items: center; gap: 1rem; padding: .85rem; border: 1px dashed rgba(33,115,77,.25); border-radius: 16px; background: rgba(232,246,237,.5); }
.image-preview-card img { width: 72px; height: 72px; object-fit: contain; border-radius: 13px; background: #fff; }
.stock-save-status { min-height: 1.35rem; font-weight: 650; }
.stock-save-status.is-saving { color: #8a6500; }
.stock-save-status.is-saved { color: #12613c; }
.stock-save-status.is-error { color: #b02a37; }

.catalog-filter { border-radius: 22px; }
.search-field { position: relative; }
.search-field span { position: absolute; top: 50%; left: 1rem; z-index: 2; color: var(--muted); transform: translateY(-50%); }
.search-field input { padding-left: 2.7rem; }
.category-chips { display: flex; gap: .5rem; overflow-x: auto; padding: .2rem 0 .45rem; scrollbar-width: thin; }
.category-chips a { flex: 0 0 auto; padding: .55rem .85rem; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.72); font-size: .78rem; font-weight: 700; text-decoration: none; }
.category-chips a:hover, .category-chips a.active { color: #fff; border-color: var(--green-700); background: var(--green-700); }
.recommendation-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
.recommendation-item { display: flex; align-items: center; gap: .65rem; min-width: 0; padding: .7rem; border: 1px solid rgba(255,255,255,.12); border-radius: 15px; background: rgba(255,255,255,.06); }
.recommendation-item img { width: 42px; height: 42px; padding: 3px; object-fit: contain; border-radius: 11px; background: #fff; }
.recommendation-item span { display: flex; min-width: 0; flex: 1; flex-direction: column; }
.recommendation-item strong { overflow: hidden; font-size: .8rem; text-overflow: ellipsis; white-space: nowrap; }
.recommendation-item small { color: rgba(255,255,255,.55); font-size: .66rem; }
.recommendation-item b { color: var(--yellow); font-size: .75rem; white-space: nowrap; }

.product-card { overflow: hidden; border-radius: 22px; background: rgba(255,255,255,.88); box-shadow: var(--shadow-sm); transition: transform .28s cubic-bezier(.2,.8,.2,1), box-shadow .28s ease; }
.product-card:hover { transform: translateY(-7px) scale(1.012); box-shadow: var(--shadow-lg); }
.product-image-wrap { position: relative; display: block; min-height: 220px; overflow: hidden; background: linear-gradient(145deg, #f4faf6, #fffbeb); }
.product-image { width: 100%; height: 220px; padding: 18px; object-fit: contain; transition: transform .45s cubic-bezier(.2,.8,.2,1); }
.product-card:hover .product-image { transform: scale(1.08); }
.category-badge { position: absolute; top: 14px; left: 14px; padding: .5rem .68rem; color: var(--green-900); border: 1px solid rgba(33,115,77,.1); border-radius: 999px; background: rgba(255,255,255,.88); box-shadow: 0 6px 16px rgba(18,63,45,.06); backdrop-filter: blur(8px); }
.quick-view { position: absolute; right: 14px; bottom: 12px; padding: .42rem .65rem; color: #fff; border-radius: 999px; background: rgba(11,47,34,.8); font-size: .67rem; font-weight: 750; opacity: 0; transform: translateY(7px); transition: .25s ease; }
.product-card:hover .quick-view { opacity: 1; transform: none; }
.product-name { min-height: 2.4em; line-height: 1.35; }
.product-name a { color: var(--ink); text-decoration: none; }
.product-price { color: var(--green-700); font-size: 1.2rem; font-weight: 850; letter-spacing: -.02em; }
.stock-pill { display: inline-flex; align-items: center; padding: .34rem .58rem; border-radius: 999px; font-size: .7rem; font-weight: 750; }
.stock-pill-lg { padding: .52rem .78rem; font-size: .82rem; }
.stock-safe { color: #12613c; background: #e1f4e8; }
.stock-low { color: #7a5900; background: #fff1b9; }
.stock-empty { color: #842029; background: #f8d7da; }
.empty-state { border-radius: 28px; }
.empty-icon { display: grid; place-items: center; width: 72px; height: 72px; margin: 0 auto 1.25rem; color: var(--green-700); border-radius: 23px; background: var(--green-100); font-size: 2rem; }

.breadcrumb a { color: var(--green-700); text-decoration: none; }
.detail-shell { border-radius: 32px; }
.detail-image-wrap { position: relative; overflow: hidden; border-radius: 26px; background: linear-gradient(145deg, #f3faf5, #fff9df); }
.detail-image { width: 100%; height: 500px; padding: 2rem; object-fit: contain; transition: transform .45s ease; }
.detail-image-wrap:hover .detail-image { transform: scale(1.035); }
.detail-float-badge { position: absolute; top: 18px; right: 18px; padding: .5rem .7rem; color: var(--green-900); border-radius: 999px; background: rgba(255,255,255,.85); box-shadow: var(--shadow-sm); font-size: .7rem; font-weight: 750; }
.category-badge-static { padding: .5rem .75rem; color: var(--green-800); border-radius: 999px; background: var(--green-100); }
.product-description { padding: 1rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.benefit-row { display: flex; flex-wrap: wrap; gap: 1rem; color: var(--muted); font-size: .78rem; }
.benefit-row b { color: var(--green-700); }
.detail-buy-box { display: flex; align-items: end; gap: .75rem; padding: 1rem; border: 1px solid var(--line); border-radius: 18px; background: rgba(232,246,237,.45); }
.quantity-control { flex: 0 0 100px; }
.quantity-control label { margin-bottom: .35rem; font-size: .72rem; font-weight: 750; }

.cart-list, .order-history-list { display: grid; gap: 1rem; }
.cart-item, .cart-summary, .checkout-section, .order-card { border-radius: var(--radius); }
.cart-item { transition: transform .2s ease, box-shadow .2s ease; }
.cart-item:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(18,63,45,.1) !important; }
.cart-item-image { width: 96px; height: 96px; padding: 7px; object-fit: contain; border-radius: 18px; background: linear-gradient(145deg, #f3f8f4, #fffbea); }
.cart-category { display: inline-block; margin-bottom: .3rem; color: var(--green-700); font-size: .65rem; font-weight: 800; text-transform: uppercase; }
.cart-quantity-form label { display: block; margin-bottom: .3rem; font-size: .7rem; font-weight: 750; }
.cart-quantity-form > div { display: flex; gap: .4rem; }
.cart-quantity-form input { width: 76px; min-height: 42px; }
.cart-quantity-form .btn { min-height: 42px; }
.cart-subtotal { display: flex; min-width: 100px; flex-direction: column; }
.cart-subtotal small { color: var(--muted); }
.btn-remove { display: grid; place-items: center; width: 35px; height: 35px; padding: 0; color: #b02a37; border: 1px solid rgba(176,42,55,.15); border-radius: 50%; background: #fff2f3; font-size: 1.2rem; }
.cart-summary { top: 105px !important; }
.summary-count { padding: .35rem .55rem; color: var(--green-700); border-radius: 999px; background: var(--green-100); font-size: .7rem; font-weight: 800; }
.summary-row { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: .7rem; color: var(--muted); font-size: .85rem; }
.summary-row strong { color: var(--ink); font-size: .78rem; }
.summary-total { border-top: 1px solid var(--line); }
.checkout-trust { display: grid; gap: .4rem; color: var(--muted); font-size: .72rem; }

.checkout-section { position: relative; }
.checkout-step-number { position: absolute; top: 24px; right: 24px; display: grid; place-items: center; width: 40px; height: 40px; color: #fff; border-radius: 14px; background: linear-gradient(145deg, var(--green-700), var(--green-900)); box-shadow: 0 8px 18px rgba(33,115,77,.2); font-weight: 850; }
.choice-card { position: relative; display: block; height: 100%; cursor: pointer; }
.choice-card input { position: absolute; opacity: 0; pointer-events: none; }
.choice-content { position: relative; display: flex; min-height: 145px; flex-direction: column; gap: .5rem; height: 100%; padding: 1rem; border: 1.5px solid rgba(18,63,45,.13); border-radius: 17px; background: rgba(255,255,255,.64); transition: border-color .2s, background .2s, transform .2s; }
.choice-content > span:not(.choice-check) { color: var(--muted); font-size: .78rem; }
.choice-content b { margin-top: auto; color: var(--green-700); }
.choice-check { position: absolute; top: .8rem; right: .8rem; display: grid; place-items: center; width: 21px; height: 21px; color: transparent; border: 1px solid var(--line); border-radius: 50%; font-size: .65rem; }
.choice-card input:checked + .choice-content { border-color: var(--green-500); background: rgba(232,246,237,.9); transform: translateY(-2px); }
.choice-card input:checked + .choice-content .choice-check { color: #fff; border-color: var(--green-700); background: var(--green-700); }
.choice-card input:focus-visible + .choice-content { outline: 3px solid rgba(67,166,111,.2); }
.choice-logo { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; background: #f8fafc; margin-bottom: .75rem; position: relative; overflow: hidden; }
.choice-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.choice-logo img.d-none { display: none; }
.choice-logo-fallback { display: none; width: 100%; height: 100%; color: #1f2937; font-weight: 800; font-size: .8rem; text-transform: uppercase; text-align: center; display: grid; place-items: center; }
.choice-logo img.d-none + .choice-logo-fallback { display: grid; }
.payment-logos { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.payment-logo { position: relative; display: inline-grid; place-items: center; width: 140px; min-height: 110px; padding: .9rem; background: #fff; border: 1px solid rgba(18,63,45,.12); border-radius: 18px; cursor: pointer; transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease; }
.payment-logo:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(18,63,45,.1); }
.payment-logo input { position: absolute; opacity: 0; pointer-events: none; }
.payment-logo img { width: 100%; max-height: 56px; object-fit: contain; display: block; }
.payment-logo-text { margin-top: .5rem; display: block; font-size: .82rem; font-weight: 700; color: var(--ink); text-align: center; line-height: 1.2; }
.payment-logo input:checked + img + .payment-logo-text { color: var(--green-700); }
.payment-logo.active, .payment-logo input:checked + img { outline: 2px solid rgba(67,166,111,.35); }
.secure-note { padding: .8rem 1rem; color: var(--muted); border-radius: 13px; background: rgba(232,246,237,.55); font-size: .72rem; }
.checkout-summary { top: 105px !important; }
.checkout-items { display: grid; gap: .8rem; max-height: 300px; overflow-y: auto; padding-right: .15rem; }
.checkout-mini-item { display: grid; grid-template-columns: 46px minmax(0,1fr) auto; gap: .65rem; align-items: center; }
.checkout-mini-item img { width: 46px; height: 46px; padding: 3px; object-fit: contain; border-radius: 11px; background: #f2f7f3; }
.checkout-mini-item span { display: flex; min-width: 0; flex-direction: column; }
.checkout-mini-item strong { overflow: hidden; font-size: .74rem; text-overflow: ellipsis; white-space: nowrap; }
.checkout-mini-item small { color: var(--muted); font-size: .67rem; }
.checkout-mini-item b { font-size: .7rem; white-space: nowrap; }

/* Hide the additional inputs and instruction blocks under payment suboptions
   Keep inputs present in DOM for form submission/validation but visually hidden */
.payment-subsection .form-label,
.payment-subsection .form-control,
.payment-provider-details,
.payment-instruction {
    display: none !important;
}

.stat-card { display: flex; align-items: center; gap: 1rem; height: 100%; min-height: 140px; padding: 1.25rem; border-radius: 22px; transition: transform .22s ease; }
.stat-card:hover { transform: translateY(-4px); }
.stat-icon { display: grid; place-items: center; flex: 0 0 48px; height: 48px; border-radius: 16px; font-size: 1.2rem; font-weight: 850; }
.stat-green { color: #167049; background: #def4e6; }
.stat-blue { color: #236aa2; background: #e4f2ff; }
.stat-yellow { color: #896200; background: #fff1b8; }
.stat-purple { color: #734da1; background: #f1e7ff; }
.stat-card div { display: flex; min-width: 0; flex-direction: column; }
.stat-card small { color: var(--muted); font-size: .72rem; }
.stat-card strong { margin: .25rem 0; font-size: 1.65rem; letter-spacing: -.04em; }
.stat-card strong.stat-money { font-size: 1.08rem; }
.stat-card div > span { color: var(--muted); font-size: .65rem; }
.admin-note { display: flex; align-items: center; gap: .8rem; padding: .9rem 1rem; border-radius: 17px; }
.admin-note > span { display: grid; place-items: center; width: 30px; height: 30px; color: #856404; border-radius: 50%; background: #fff1bd; font-weight: 900; }
.admin-note div { display: flex; flex-direction: column; }
.admin-note small { color: var(--muted); }
.admin-panel { border-radius: 25px; }
.admin-panel-head { border-bottom: 1px solid var(--line); }
.modern-table thead th { padding-top: 1rem; padding-bottom: 1rem; color: var(--muted); border-bottom-color: var(--line); background: rgba(232,246,237,.42); font-size: .7rem; letter-spacing: .05em; text-transform: uppercase; }
.modern-table td { padding-top: 1rem; padding-bottom: 1rem; border-bottom-color: rgba(18,63,45,.07); }
.modern-table tbody tr { transition: background .2s; }
.modern-table tbody tr:hover { background: rgba(232,246,237,.32); }
.table-product-img { width: 56px; height: 56px; padding: 4px; object-fit: contain; border-radius: 14px; background: #f1f7f3; }
.product-cell { min-width: 230px; }
.admin-category { padding: .38rem .55rem; color: var(--green-700); border-radius: 999px; background: var(--green-100); font-size: .7rem; font-weight: 750; }
.action-btn { border-radius: 10px; }

.order-card { overflow: hidden; }
.order-card-header { border-bottom: 1px solid var(--line); background: linear-gradient(120deg, rgba(232,246,237,.62), rgba(255,249,223,.55)); }
.order-icon { display: grid; place-items: center; width: 46px; height: 46px; color: var(--green-700); border-radius: 15px; background: rgba(255,255,255,.75); }
.order-status { display: inline-block; padding: .45rem .7rem; color: #12613c; border-radius: 999px; background: #dff3e6; font-size: .75rem; font-weight: 850; }
.status-menunggu-pembayaran { color: #805b00; background: #fff1bd; }
.order-product + .order-product { border-top: 1px dashed rgba(18,63,45,.13); }
.history-image { width: 76px; height: 76px; padding: 5px; object-fit: contain; border-radius: 16px; background: #f2f7f3; }
.delivery-block { display: flex; gap: .8rem; }
.delivery-icon { display: grid; place-items: center; flex: 0 0 38px; height: 38px; color: var(--green-700); border-radius: 12px; background: var(--green-100); }
.order-total-box { border-radius: 15px; background: rgba(232,246,237,.55); }

.auth-section { min-height: calc(100vh - 200px); background: radial-gradient(circle at 20% 10%, rgba(255,217,90,.2), transparent 20rem), linear-gradient(135deg, #edf8f0, #fffbea); }
.auth-card { max-width: 570px; overflow: hidden; border-radius: 30px; }
.auth-card::before { content: ""; display: block; height: 5px; background: linear-gradient(90deg, var(--green-500), var(--yellow)); }

/* Dedicated admin workspace */
.admin-body { min-height: 100vh; background: #f2f6f3; }
.admin-sidebar { position: fixed; inset: 0 auto 0 0; z-index: 1045; width: 278px !important; color: #fff; border: 0 !important; background: radial-gradient(circle at 30% 0, rgba(67,166,111,.2), transparent 14rem), linear-gradient(180deg, #0b2f22, #102a20); box-shadow: 18px 0 45px rgba(8,39,27,.12); }
.admin-sidebar-inner { display: flex; height: 100%; flex-direction: column; padding: 1.4rem; overflow-y: auto; }
.admin-brand { display: flex; align-items: center; gap: .75rem; margin-bottom: 2.5rem; color: #fff; text-decoration: none; }
.admin-brand > span:last-child { display: flex; flex-direction: column; font-weight: 850; line-height: 1.05; }
.admin-brand small { margin-top: .25rem; color: rgba(255,255,255,.43); font-size: .62rem; font-weight: 600; letter-spacing: .04em; }
.admin-nav { display: grid; gap: .35rem; }
.admin-nav-label { padding: 0 .8rem .45rem; color: rgba(255,255,255,.35); font-size: .6rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.admin-nav a { display: flex; align-items: center; gap: .8rem; padding: .78rem .85rem; color: rgba(255,255,255,.65); border: 1px solid transparent; border-radius: 13px; font-size: .84rem; font-weight: 700; text-decoration: none; transition: .2s ease; }
.admin-nav a i { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 9px; background: rgba(255,255,255,.06); font-style: normal; }
.admin-nav a:hover { color: #fff; background: rgba(255,255,255,.06); transform: translateX(2px); }
.admin-nav a.active { color: var(--green-950); border-color: rgba(255,255,255,.22); background: linear-gradient(135deg, var(--yellow), #ffe98e); box-shadow: 0 9px 22px rgba(255,217,90,.12); }
.admin-nav a.active i { background: rgba(11,47,34,.08); }
.admin-sidebar-user { display: flex; align-items: center; gap: .7rem; margin-top: auto; padding: 1rem .2rem; border-top: 1px solid rgba(255,255,255,.08); }
.admin-sidebar-user > span, .admin-avatar { display: grid; place-items: center; flex: 0 0 38px; height: 38px; color: var(--green-950); border-radius: 13px; background: var(--yellow); font-weight: 900; }
.admin-sidebar-user div { display: flex; min-width: 0; flex-direction: column; }
.admin-sidebar-user strong, .admin-sidebar-user small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-sidebar-user strong { font-size: .78rem; }
.admin-sidebar-user small { color: rgba(255,255,255,.42); font-size: .62rem; }
.admin-logout-btn { color: rgba(255,255,255,.62); border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.04); font-size: .75rem; }
.admin-logout-btn:hover { color: #fff; border-color: rgba(255,255,255,.18); background: rgba(255,255,255,.08); }
.admin-workspace { min-height: 100vh; margin-left: 278px; }
.admin-topbar { position: sticky; top: 0; z-index: 1030; display: flex; min-height: 76px; align-items: center; gap: 1rem; padding: .85rem clamp(1rem,3vw,2.3rem); border-bottom: 1px solid var(--line); background: rgba(248,251,249,.88); backdrop-filter: blur(18px); }
.admin-topbar > div:nth-child(2) { display: flex; flex-direction: column; }
.admin-topbar-label { color: var(--muted); font-size: .62rem; font-weight: 700; }
.admin-topbar strong { font-size: .92rem; }
.admin-topbar-actions { display: flex; align-items: center; gap: .7rem; margin-left: auto; }
.admin-avatar { width: 38px; }
.admin-menu-btn { display: grid; place-items: center; width: 42px; height: 42px; color: var(--green-900); border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.admin-content { padding: clamp(1.25rem,3vw,2.4rem); }
.admin-footer { display: flex; justify-content: space-between; padding: 1rem clamp(1.25rem,3vw,2.4rem) 1.8rem; color: var(--muted); font-size: .68rem; }
.admin-page-heading { display: flex; justify-content: space-between; align-items: end; gap: 1.5rem; margin-bottom: 1.8rem; }
.admin-page-heading h1 { margin: 0 0 .35rem; font-size: clamp(1.8rem,3vw,2.6rem); font-weight: 850; letter-spacing: -.045em; }
.admin-page-heading p { margin: 0; color: var(--muted); }
.admin-date-chip { padding: .6rem .85rem; color: var(--green-800); border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.75); font-size: .72rem; font-weight: 750; }
.admin-mini-stat { display: flex; min-height: 105px; flex-direction: column; justify-content: center; padding: 1.15rem; border-radius: 19px; }
.admin-mini-stat small { color: var(--muted); font-size: .68rem; }
.admin-mini-stat strong { margin-top: .25rem; font-size: 1.5rem; letter-spacing: -.04em; }
.admin-mini-stat .small-money { font-size: 1rem; }
.admin-filter-bar { border-radius: 19px; }
.admin-recent-list, .admin-low-stock-list { display: grid; padding: .25rem 1.25rem 1.25rem; }
.admin-recent-order { display: grid; grid-template-columns: 42px minmax(0,1fr) auto; gap: .75rem; align-items: center; padding: .9rem .2rem; color: var(--ink); border-bottom: 1px solid rgba(18,63,45,.07); text-decoration: none; }
.admin-recent-order:last-child { border-bottom: 0; }
.admin-recent-order > div { display: flex; min-width: 0; flex-direction: column; }
.admin-recent-order > div strong, .admin-recent-order > div small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-recent-order > div strong { font-size: .78rem; }
.admin-recent-order > div small { color: var(--muted); font-size: .66rem; }
.admin-recent-order > b { font-size: .74rem; white-space: nowrap; }
.admin-recent-order > em { grid-column: 2 / 4; justify-self: start; margin-top: -.45rem; padding: .25rem .45rem; color: var(--green-700); border-radius: 999px; background: var(--green-100); font-size: .58rem; font-style: normal; font-weight: 750; }
.admin-low-stock-list a { display: flex; align-items: center; gap: .75rem; padding: .72rem .2rem; color: var(--ink); border-bottom: 1px solid rgba(18,63,45,.07); text-decoration: none; }
.admin-low-stock-list a:last-child { border-bottom: 0; }
.admin-low-stock-list img { width: 45px; height: 45px; padding: 3px; object-fit: contain; border-radius: 11px; background: #f1f7f3; }
.admin-low-stock-list span { display: flex; min-width: 0; flex: 1; flex-direction: column; }
.admin-low-stock-list strong { overflow: hidden; font-size: .75rem; text-overflow: ellipsis; white-space: nowrap; }
.admin-low-stock-list small { color: var(--muted); font-size: .64rem; }
.admin-low-stock-list b { display: grid; place-items: center; min-width: 31px; height: 31px; color: #805b00; border-radius: 10px; background: #fff1bd; font-size: .72rem; }
.admin-low-stock-list b.danger { color: #a51d2a; background: #fbe1e4; }
.admin-quick-actions { display: flex; align-items: center; gap: .65rem; padding: 1rem; border-radius: 20px; }
.admin-quick-actions > div { display: flex; flex: 1; flex-direction: column; }
.admin-quick-actions > div span { color: var(--muted); font-size: .68rem; }
.admin-form-card, .admin-info-card { border-radius: 23px; }
.admin-profile-avatar { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 1rem; color: var(--green-950); border-radius: 20px; background: var(--yellow); font-size: 1.35rem; font-weight: 900; }
.order-status-form { display: flex; min-width: 245px; gap: .4rem; }
.order-status-form .form-select { min-height: 38px; }
.order-address { margin-top: .25rem; color: var(--muted); font-size: .65rem; }
.order-address summary { color: var(--green-700); cursor: pointer; font-weight: 700; }
.order-address div { max-width: 280px; padding-top: .35rem; line-height: 1.45; }

.admin-login-body { min-height: 100vh; background: #edf5ef; }
.admin-login-shell { display: grid; min-height: 100vh; grid-template-columns: minmax(360px, .9fr) minmax(480px, 1.1fr); }
.admin-login-visual { position: relative; display: flex; overflow: hidden; flex-direction: column; justify-content: space-between; padding: clamp(2rem,5vw,5rem); color: #fff; background: radial-gradient(circle at 80% 15%, rgba(255,217,90,.25), transparent 15rem), radial-gradient(circle at 20% 80%, rgba(67,166,111,.22), transparent 18rem), linear-gradient(145deg, #0b2f22, #18583d); }
.admin-login-visual::after { content: ""; position: absolute; right: -8rem; bottom: -8rem; width: 25rem; height: 25rem; border: 65px solid rgba(255,255,255,.035); border-radius: 50%; }
.admin-login-brand { position: relative; z-index: 1; display: flex; align-items: center; gap: .75rem; color: #fff; text-decoration: none; }
.admin-login-brand > span:last-child { display: flex; flex-direction: column; font-weight: 850; }
.admin-login-brand small { color: rgba(255,255,255,.45); font-size: .62rem; }
.admin-login-visual > div { position: relative; z-index: 1; max-width: 590px; }
.admin-security-chip { display: inline-block; margin-bottom: 1.3rem; padding: .48rem .7rem; color: #ffea91; border: 1px solid rgba(255,217,90,.18); border-radius: 999px; background: rgba(255,217,90,.08); font-size: .7rem; font-weight: 750; }
.admin-login-visual h1 { max-width: 600px; font-size: clamp(2.5rem,5.5vw,5rem); font-weight: 850; line-height: 1; letter-spacing: -.06em; }
.admin-login-visual p { max-width: 530px; color: rgba(255,255,255,.58); line-height: 1.75; }
.admin-login-features { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1.6rem; }
.admin-login-features span { padding: .5rem .65rem; border: 1px solid rgba(255,255,255,.09); border-radius: 999px; background: rgba(255,255,255,.05); font-size: .67rem; }
.admin-login-visual > small { position: relative; z-index: 1; color: rgba(255,255,255,.35); }
.admin-login-form-wrap { display: grid; place-items: center; padding: 2rem; }
.admin-login-card { width: min(100%, 520px); padding: clamp(1.5rem,4vw,3.5rem); border-radius: 30px; }
.admin-back-link { display: block; margin-top: 1.5rem; color: var(--muted); font-size: .78rem; font-weight: 700; text-align: center; text-decoration: none; }

.site-footer { margin-top: 5rem !important; border-top: 1px solid var(--line); background: rgba(238,246,240,.75); }
.footer-link { display: inline-block; margin-left: 1rem; color: var(--green-800); font-size: .85rem; font-weight: 700; text-decoration: none; }

@media (max-width: 991.98px) {
    .main-navbar { min-height: 70px; }
    .navbar-collapse { padding: .8rem 0 1rem; }
    .nav-search { max-width: none; }
    .user-chip { margin: .5rem 0; }
    .navbar .nav-link::after { display: none; }
    .admin-sidebar { position: fixed; }
    .admin-workspace { margin-left: 0; }
    .admin-login-shell { grid-template-columns: 1fr; }
    .admin-login-visual { min-height: 390px; padding: 2rem; }
    .admin-login-visual > small { display: none; }
}
@media (max-width: 991.98px) {
    .hero-content { padding: 5rem 0; }
    .hero-visual { min-height: 360px; }
    .chip-stock { right: 10px; }
    .cart-summary, .checkout-summary { position: static !important; }
}
@media (max-width: 767.98px) {
    .hero-section { min-height: auto; }
    .hero-content { padding: 4.2rem 0; }
    .hero-title { font-size: clamp(2.6rem, 13vw, 4.1rem); }
    .hero-trust { gap: .8rem; justify-content: space-between; }
    .hero-trust small { font-size: .62rem; }
    .hero-visual { min-height: 330px; padding: 1.25rem; border-radius: 28px; }
    .budget-preview { right: 1.25rem; bottom: 3rem; left: 1.25rem; }
    .chip-stock { top: 41%; }
    .recommendation-grid { grid-template-columns: 1fr; }
    .product-image-wrap, .product-image { min-height: 190px; height: 190px; }
    .detail-shell { padding: 1rem !important; }
    .detail-image { height: 320px; padding: 1rem; }
    .detail-buy-box { align-items: stretch; flex-direction: column; }
    .quantity-control { flex-basis: auto; }
    .cart-item-image { width: 78px; height: 78px; }
    .checkout-step-number { top: 18px; right: 18px; width: 34px; height: 34px; }
    .checkout-section { padding: 1.25rem !important; }
    .choice-content { min-height: 120px; }
    .toast-container { top: 72px !important; right: 0 !important; left: 0 !important; }
    .app-toast { margin-right: auto; margin-left: auto; }
    .footer-link { margin-right: 1rem; margin-left: 0; }
    .admin-page-heading { align-items: stretch; flex-direction: column; }
    .admin-page-heading > .btn { align-self: flex-start; }
    .admin-quick-actions { align-items: stretch; flex-direction: column; }
    .admin-quick-actions > div { margin-bottom: .4rem; }
    .admin-login-visual { min-height: 340px; }
    .admin-login-visual h1 { font-size: 2.6rem; }
    .admin-login-form-wrap { padding: 1rem; }
    .admin-login-card { padding: 1.5rem; }
}
@media (max-width: 575.98px) {
    .hero-highlight { white-space: normal; }
    .budget-input { align-items: stretch; flex-wrap: wrap; }
    .budget-input input { width: calc(100% - 3rem); }
    .budget-input button { width: 100%; }
    .stat-card { min-height: 155px; align-items: flex-start; flex-direction: column; }
    .stat-card strong { font-size: 1.35rem; }
    .checkout-mini-item { grid-template-columns: 42px minmax(0,1fr); }
    .checkout-mini-item b { grid-column: 2; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ==== Halaman sukses checkout (pesanan_sukses.php) ==== */
.success-card { border-radius: var(--radius); }
.success-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 76px;
    height: 76px;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    background: var(--green-100);
    color: var(--green-700);
    font-size: 2.1rem;
    font-weight: 800;
    box-shadow: var(--shadow-sm);
}
.success-details { border: 1px solid var(--line); border-radius: 16px; padding: .25rem 1.1rem; background: rgba(255,255,255,.5); }
.success-details .border-bottom { border-color: var(--line) !important; }
.badge-status { padding: .35rem .7rem; border-radius: 999px; background: var(--green-100); color: var(--green-700); font-weight: 700; font-size: .78rem; }

/* ==== Halaman selesai logout dan aksi pesanan ==== */
.completion-section { min-height: 58vh; display: grid; align-items: center; }
.completion-card { max-width: 680px; border-radius: var(--radius); }
.completion-card > p { max-width: 540px; line-height: 1.7; }
.admin-completion-section { display: grid; min-height: calc(100vh - 210px); place-items: center; padding: 2rem 0; }
.filter-result-summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-radius: 16px; }
.filter-result-summary span { color: var(--muted); font-size: .9rem; }
.order-detail-items { display: grid; gap: .2rem; }
.order-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.order-detail-grid > div { display: grid; gap: .25rem; padding: 1rem; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.45); }
.order-detail-grid small { color: var(--muted); font-size: .75rem; font-weight: 700; }
.order-detail-grid strong { font-size: .9rem; line-height: 1.55; }
.order-detail-wide { grid-column: 1 / -1; }
.order-detail-summary { display: grid; gap: .85rem; }
.order-detail-summary > span { display: flex; justify-content: space-between; gap: 1rem; color: var(--muted); font-size: .87rem; }
.order-detail-summary strong { color: var(--ink); font-size: .9rem; text-align: right; }
.order-detail-summary .order-detail-total { margin-top: .15rem; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--ink); font-weight: 800; }
.order-detail-summary .order-detail-total strong { color: var(--green-700); font-size: 1.05rem; }

@media (max-width: 575.98px) {
    .filter-result-summary { align-items: flex-start; flex-direction: column; }
    .order-detail-grid { grid-template-columns: 1fr; }
    .order-detail-wide { grid-column: auto; }
}

/* ==== Field nominal transfer pada checkout ==== */
.payment-subsection .input-group-text { background: var(--green-100); color: var(--green-700); font-weight: 700; border: 1px solid var(--line); }
