@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@500;600;700;800;900&family=Space+Grotesk:wght@600;700;800;900&family=JetBrains+Mono:wght@700;800&display=swap');

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

:root {
    --red: #fe2c55;
    --red-dark: #d91f44;
    --black: #0a0a0a;
    --white: #ffffff;
    --bg: #f7f7f5;
    --card: #ffffff;
    --border: #e0e0de;
    --border-dark: #0a0a0a;
    --txt: #0a0a0a;
    --txt-2: #444444;
    --txt-3: #888888;
    --green: #16a34a;
    --blue: #2563eb;
    --sans: 'Plus Jakarta Sans', system-ui, sans-serif;
    --head: 'Space Grotesk', var(--sans);
    --mono: 'JetBrains Mono', monospace;
    --radius: 14px;
    --radius-sm: 8px;
    --shadow: 4px 4px 0px var(--black);
    --shadow-sm: 2px 2px 0px var(--black);
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--sans);
    background: var(--bg);
    background-image: linear-gradient(rgba(0,0,0,.03) 1px, transparent 1px), linear-gradient(90deg, rgba(0,0,0,.03) 1px, transparent 1px);
    background-size: 20px 20px;
    color: var(--txt);
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-bottom: 80px;
}

.top-bar {
    background: #fff0f3;
    border-bottom: 2px solid var(--border-dark);
    overflow: hidden;
    height: 30px;
    display: flex;
    align-items: center;
}

.marquee-wrap { width: 100%; overflow: hidden; }

.marquee-inner {
    display: inline-flex;
    animation: marquee 28s linear infinite;
    white-space: nowrap;
}

.marquee-text {
    font-family: var(--head);
    font-size: 11px;
    font-weight: 800;
    color: var(--black);
}

.top-bar:hover .marquee-inner { animation-play-state: paused; }

@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.navbar {
    background: var(--white);
    border-bottom: 2.5px solid var(--border-dark);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-inner {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 12px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.nav-brand {
    font-family: var(--head);
    font-size: 12px;
    font-weight: 900;
    color: var(--black);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--white);
    border: 2px solid var(--black);
    border-radius: var(--radius-sm);
    padding: 4px 8px;
    box-shadow: var(--shadow-sm);
    white-space: nowrap;
    flex-shrink: 0;
    transition: transform .12s, box-shadow .12s;
}

.nav-brand:hover { transform: translate(-1px,-1px); box-shadow: 3px 3px 0 var(--black); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.nav-link {
    font-family: var(--head);
    font-size: 11px;
    font-weight: 800;
    color: var(--black);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 8px;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    white-space: nowrap;
    transition: all .12s;
}

.nav-link:hover { background: var(--bg); border-color: var(--border-dark); }
.nav-link.active { background: var(--red); color: var(--white); border-color: var(--black); box-shadow: var(--shadow-sm); }

main { flex: 1; max-width: 720px; margin: 0 auto; width: 100%; padding: 0 16px; }

.tab-section { display: none; }
.tab-section.show { display: block; }

.hero { padding: 24px 0 20px; border-bottom: 2px solid var(--border); margin-bottom: 24px; }
.hero-sm { padding: 20px 0 16px; }

.hero-inner { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.hero-text { flex: 1; min-width: 0; }

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--head);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .06em;
    color: var(--red);
    background: #fff0f3;
    border: 2px solid var(--black);
    border-radius: 6px;
    padding: 3px 8px;
    margin-bottom: 10px;
    box-shadow: var(--shadow-sm);
}

.hero-title {
    font-family: var(--head);
    font-size: clamp(2rem, 8vw, 3rem);
    font-weight: 900;
    line-height: 1.05;
    color: var(--black);
    letter-spacing: -.03em;
    margin-bottom: 10px;
    word-break: break-word;
}

.hero-title-sm { font-size: clamp(1.5rem, 6vw, 2.2rem); }
.hero-title-accent { color: var(--red); }

.hero-sub {
    font-size: 13px;
    font-weight: 600;
    color: var(--txt-2);
    line-height: 1.5;
    max-width: 340px;
}

.hero-stats {
    display: flex;
    align-items: center;
    margin-top: 16px;
    background: var(--white);
    border: 2.5px solid var(--black);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    width: fit-content;
}

.hero-stat { padding: 8px 14px; text-align: center; }
.hero-stat-val { font-family: var(--head); font-size: 18px; font-weight: 900; color: var(--red); line-height: 1; }
.hero-stat-lbl { font-size: 9px; font-weight: 800; color: var(--txt-3); text-transform: uppercase; letter-spacing: .05em; margin-top: 2px; }
.hero-stat-divider { width: 2px; background: var(--black); align-self: stretch; }

.hero-badge-wrap { display: flex; flex-direction: column; gap: 8px; flex-shrink: 0; }

.hero-badge-card {
    background: var(--white);
    border: 2.5px solid var(--black);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 14px 16px;
    text-align: center;
    min-width: 88px;
}

.hbc-label { font-family: var(--head); font-size: 9px; font-weight: 900; color: var(--black); margin-top: 6px; }
.hbc-sub { font-size: 8px; font-weight: 700; color: var(--txt-3); margin-top: 2px; }

.catalog-section { padding-bottom: 24px; }

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

.section-title {
    font-family: var(--head);
    font-size: 15px;
    font-weight: 900;
    color: var(--black);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.search-wrap {
    position: relative;
    flex: 1;
    min-width: 160px;
    max-width: 260px;
    display: flex;
    align-items: center;
}

.search-wrap svg { position: absolute; left: 10px; color: var(--txt-3); pointer-events: none; flex-shrink: 0; }

.search-input {
    width: 100%;
    height: 36px;
    padding: 0 12px 0 32px;
    border: 2px solid var(--black);
    border-radius: var(--radius-sm);
    background: var(--white);
    font-family: var(--sans);
    font-size: 12px;
    font-weight: 700;
    color: var(--black);
    outline: none;
    box-shadow: var(--shadow-sm);
}

.search-input::placeholder { color: var(--txt-3); font-weight: 600; }

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.product-card {
    background: var(--card);
    border: 2.5px solid var(--black);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 16px;
    display: flex;
    flex-direction: column;
    transition: transform .15s, box-shadow .15s;
}

.product-card:hover { transform: translate(-2px,-2px); box-shadow: 6px 6px 0 var(--black); }

.product-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 10px; }

.product-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    border: 2px solid var(--black);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

.product-name { font-family: var(--head); font-size: 13px; font-weight: 900; color: var(--black); line-height: 1.25; margin-bottom: 4px; }
.product-desc { font-size: 11px; font-weight: 600; color: var(--txt-2); line-height: 1.4; }

.product-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }

.product-badge {
    display: inline-flex;
    align-items: center;
    font-family: var(--head);
    font-size: 8.5px;
    font-weight: 900;
    padding: 3px 7px;
    border-radius: 5px;
    border: 1.5px solid var(--black);
    white-space: nowrap;
}

.badge-pink { background: #fff0f3; color: var(--black); }
.badge-green { background: #e8fef0; color: var(--black); }
.badge-blue { background: #e8f4fe; color: var(--black); }

.product-stock { font-family: var(--mono); font-size: 10px; font-weight: 800; color: var(--txt-2); display: inline-flex; align-items: center; gap: 4px; }

.price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-top: 1.5px solid var(--border);
    border-bottom: 1.5px solid var(--border);
    margin: 10px 0;
}

.price-label { font-size: 8.5px; font-weight: 900; color: var(--txt-3); letter-spacing: .06em; }
.price-current { font-family: var(--mono); font-size: 14px; font-weight: 900; color: var(--black); }
.price-original { font-family: var(--mono); font-size: 10px; font-weight: 700; color: var(--txt-3); text-decoration: line-through; margin-right: 6px; }

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    background: var(--red);
    color: var(--white);
    border: 2.5px solid var(--black);
    border-radius: var(--radius-sm);
    padding: 10px 16px;
    font-family: var(--head);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .03em;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: transform .12s, box-shadow .12s, background .12s;
    text-decoration: none;
    margin-top: 10px;
}

.btn-primary:hover { background: var(--red-dark); transform: translate(-2px,-2px); box-shadow: 6px 6px 0 var(--black); }
.btn-primary:active { transform: translate(1px,1px); box-shadow: 2px 2px 0 var(--black); }
.btn-primary:disabled { background: #ccc; color: #888; cursor: not-allowed; transform: none; box-shadow: var(--shadow); }

.btn-wa { background: #16a34a; }
.btn-wa:hover { background: #15803d; }
.btn-tg { background: #2563eb; }
.btn-tg:hover { background: #1d4ed8; }

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    background: var(--white);
    color: var(--black);
    border: 2px solid var(--black);
    border-radius: var(--radius-sm);
    padding: 9px 16px;
    font-family: var(--head);
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: transform .12s, box-shadow .12s;
    text-decoration: none;
    margin-top: 8px;
}

.btn-outline:hover { transform: translate(-1px,-1px); box-shadow: 3px 3px 0 var(--black); }

.empty-state { grid-column: 1/-1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 48px 24px; color: var(--txt-3); font-size: 13px; font-weight: 700; }

.form-section { padding-bottom: 24px; }

.form-card {
    background: var(--card);
    border: 2.5px solid var(--black);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px;
}

.form-group { margin-bottom: 14px; }

.form-label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 9.5px;
    font-weight: 900;
    color: var(--black);
    letter-spacing: .06em;
    margin-bottom: 6px;
}

.form-input {
    width: 100%;
    height: 40px;
    padding: 0 12px;
    border: 2px solid var(--black);
    border-radius: var(--radius-sm);
    background: var(--white);
    font-family: var(--sans);
    font-size: 13px;
    font-weight: 700;
    color: var(--black);
    outline: none;
    box-shadow: var(--shadow-sm);
    transition: box-shadow .12s;
}

.form-input:focus { box-shadow: 3px 3px 0 var(--red); border-color: var(--red); }

textarea.form-input { height: auto; padding: 10px 12px; min-height: 80px; resize: vertical; }

select.form-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 512'%3E%3Cpath fill='%230a0a0a' d='M137.4 374.6c12.5 12.5 32.8 12.5 45.3 0l128-128c9.2-9.2 11.9-22.9 6.9-34.9s-16.6-19.8-29.6-19.8L32 192c-12.9 0-24.6 7.8-29.6 19.8s-2.2 25.7 6.9 34.9l128 128z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
    padding-right: 32px;
    cursor: pointer;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.alert-error {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff0f3;
    border: 2px solid var(--red);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--red);
    margin-bottom: 12px;
}

.payment-method-card {
    background: var(--bg);
    border: 2px solid var(--black);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--head);
    font-size: 12px;
    font-weight: 900;
    margin-bottom: 12px;
}

.badge-selected {
    margin-left: auto;
    background: var(--red);
    color: var(--white);
    border: 1.5px solid var(--black);
    border-radius: 5px;
    padding: 2px 7px;
    font-size: 8.5px;
    font-weight: 900;
    flex-shrink: 0;
}

.qris-timer-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.qris-timer-label { display: flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; color: var(--txt-2); }
.qris-timer { font-family: var(--mono); font-size: 18px; font-weight: 900; color: var(--red); }

.qris-img-wrap {
    width: 200px;
    height: 200px;
    margin: 0 auto 16px;
    border: 3px solid var(--black);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
}

.qris-loading { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 10px; font-weight: 800; color: var(--txt-3); }
#qris-img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }

.qris-amount-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.qris-amount-label { font-size: 9px; font-weight: 900; color: var(--txt-3); letter-spacing: .06em; }
.qris-amount { font-family: var(--mono); font-size: 16px; font-weight: 900; color: var(--red); }

.qris-status-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff0f3;
    border: 2px solid var(--black);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-family: var(--head);
    font-size: 12px;
    font-weight: 800;
    color: var(--black);
    margin-bottom: 12px;
}

.status-error { background: #fff0f3; }
.status-success { background: #e8fef0; }

.success-icon { display: flex; justify-content: center; margin-bottom: 12px; }
.success-trx-id { font-family: var(--mono); font-size: 10px; font-weight: 800; color: var(--txt-3); text-align: center; margin-bottom: 4px; }
.success-product { font-family: var(--head); font-size: 14px; font-weight: 900; color: var(--black); text-align: center; margin-bottom: 16px; }

.success-message-box {
    background: #f7fff9;
    border: 2px solid var(--black);
    border-radius: var(--radius-sm);
    padding: 14px;
    margin-bottom: 4px;
}

.success-message-title { display: flex; align-items: center; gap: 6px; font-family: var(--head); font-size: 11px; font-weight: 900; color: var(--black); margin-bottom: 8px; }
.success-message-text { font-size: 11.5px; font-weight: 600; color: var(--txt-2); line-height: 1.5; margin-bottom: 12px; }

.success-trx-box {
    background: var(--black);
    color: var(--white);
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 800;
    padding: 8px 12px;
    border-radius: 6px;
    text-align: center;
    margin-bottom: 12px;
    letter-spacing: .04em;
    user-select: all;
    word-break: break-all;
}

.success-cs-buttons { display: flex; flex-direction: column; gap: 8px; }
.success-cs-buttons .btn-primary { margin-top: 0; }

.admin-hero-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.admin-hero-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 4px;
}

.admin-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 20px; }

.stat-card {
    background: var(--white);
    border: 2.5px solid var(--black);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    padding: 12px;
    text-align: center;
}

.stat-val { font-family: var(--head); font-size: 20px; font-weight: 900; color: var(--red); }
.stat-lbl { font-size: 9px; font-weight: 800; color: var(--txt-3); margin-top: 2px; }

.admin-marquee-wrap {
    background: var(--white);
    border: 2.5px solid var(--black);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 14px 16px;
    margin-bottom: 20px;
}

.marquee-input-row {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 8px;
}

.marquee-input-row .form-input {
    flex: 1;
    margin-bottom: 0;
}

.marquee-input-row .btn-primary {
    width: auto;
    margin-top: 0;
    white-space: nowrap;
    flex-shrink: 0;
    padding: 0 16px;
    height: 40px;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s;
    padding: 16px;
}

.modal-overlay.active { opacity: 1; pointer-events: auto; }

.modal-card {
    background: var(--white);
    border: 2.5px solid var(--black);
    border-radius: var(--radius);
    box-shadow: 8px 8px 0 var(--black);
    width: 100%;
    max-width: 480px;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    transform: scale(.96);
    transition: transform .2s;
}

.modal-overlay.active .modal-card { transform: scale(1); }

.modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 2px solid var(--black);
    background: var(--bg);
    border-radius: var(--radius) var(--radius) 0 0;
    flex-shrink: 0;
}

.modal-title { font-family: var(--head); font-size: 13px; font-weight: 900; display: flex; align-items: center; gap: 7px; }

.modal-close {
    width: 28px;
    height: 28px;
    background: var(--white);
    border: 2px solid var(--black);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}

.modal-body { padding: 16px 18px; overflow-y: auto; flex: 1; }
.modal-body .form-input { margin-bottom: 0; }
.modal-body .form-group { margin-bottom: 12px; }

.modal-foot {
    padding: 12px 18px;
    border-top: 2px solid var(--black);
    background: var(--bg);
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    border-radius: 0 0 var(--radius) var(--radius);
    flex-shrink: 0;
}

.modal-foot .btn-primary,
.modal-foot .btn-outline { width: auto; margin-top: 0; }

.footer {
    background: var(--white);
    border-top: 2px solid var(--black);
    padding: 14px 16px;
}

.footer-inner {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.footer-brand { font-family: var(--head); font-size: 12px; font-weight: 900; display: flex; align-items: center; gap: 7px; }
.footer-copy { font-size: 10px; font-weight: 700; color: var(--txt-3); }

.footer-socials { display: flex; gap: 8px; }

.footer-social-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: var(--head);
    font-size: 10.5px;
    font-weight: 800;
    color: var(--black);
    text-decoration: none;
    background: var(--white);
    border: 2px solid var(--black);
    border-radius: var(--radius-sm);
    padding: 4px 9px;
    box-shadow: var(--shadow-sm);
    transition: transform .12s, box-shadow .12s;
}

.footer-social-btn:hover { transform: translate(-1px,-1px); box-shadow: 3px 3px 0 var(--black); }

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    border-top: 2.5px solid var(--black);
    z-index: 90;
    padding: 6px 12px 6px;
}

.bottom-nav-inner {
    max-width: 720px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 6px;
}

.bnav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    font-family: var(--head);
    font-size: 8.5px;
    font-weight: 900;
    color: var(--black);
    text-decoration: none;
    border: 2px solid var(--black);
    border-radius: var(--radius-sm);
    padding: 6px 4px;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: all .12s;
}

.bnav-item:hover { transform: translate(-1px,-1px); box-shadow: 3px 3px 0 var(--black); }
.bnav-item.active { background: var(--red); color: var(--white); border-color: var(--black); }

.toast {
    position: fixed;
    bottom: 80px;
    right: 16px;
    background: var(--white);
    border: 2.5px solid var(--black);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
    padding: 9px 14px;
    font-family: var(--head);
    font-size: 11.5px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 7px;
    z-index: 9999;
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition: opacity .25s, transform .25s;
    max-width: calc(100vw - 32px);
}

.toast.show { opacity: 1; transform: translateY(0); }
.toast-success { color: var(--green); }
.toast-error { color: var(--red); }

.terminal-textarea {
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 700;
    background: var(--bg);
    color: var(--txt);
    border-color: var(--black);
    min-height: 200px;
    height: auto;
    padding: 12px;
    resize: vertical;
    line-height: 1.7;
    letter-spacing: 0.02em;
}

.terminal-textarea::placeholder {
    color: var(--txt-3);
    font-weight: 600;
}

.terminal-textarea:focus {
    box-shadow: 3px 3px 0 var(--red);
    border-color: var(--red);
}

.status-spinner {
    width: 14px;
    height: 14px;
    border: 2.5px solid var(--border);
    border-top-color: var(--black);
    border-radius: 50%;
    flex-shrink: 0;
    animation: spin 0.8s linear infinite;
}

.qty-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    margin-top: 10px;
}

.qty-btn {
    width: 30px;
    height: 30px;
    border: 2px solid var(--black);
    border-radius: var(--radius-sm);
    background: var(--white);
    font-family: var(--head);
    font-size: 16px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .12s, box-shadow .12s;
    line-height: 1;
}

.qty-btn:hover { transform: translate(-1px,-1px); box-shadow: 3px 3px 0 var(--black); }
.qty-btn:active { transform: translate(1px,1px); box-shadow: none; }

.qty-val {
    font-family: var(--mono);
    font-size: 15px;
    font-weight: 900;
    min-width: 24px;
    text-align: center;
}

.qty-max {
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 700;
    color: var(--txt-3);
}

.long-desc-box {
    background: var(--bg);
    border: 2px solid var(--black);
    border-radius: var(--radius-sm);
    padding: 14px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
}

.long-desc-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--head);
    font-size: 11px;
    font-weight: 900;
    color: var(--black);
    margin-bottom: 8px;
}

.long-desc-content {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--txt-2);
    line-height: 1.7;
    white-space: pre-wrap;
    word-break: break-word;
}

.product-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    border-bottom: 2px solid var(--black);
    margin: -16px -16px 12px -16px;
    width: calc(100% + 32px);
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-thumb-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #fff0f3 0%, #f7f7f5 100%);
}

.img-upload-wrap {
    position: relative;
    width: 100%;
}

.img-preview-box {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 2px dashed var(--black);
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color .12s, box-shadow .12s;
    position: relative;
    box-shadow: var(--shadow-sm);
}

.img-preview-box:hover { border-color: var(--red); box-shadow: 3px 3px 0 var(--red); }

.img-preview-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.img-preview-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: var(--txt-3);
    font-family: var(--head);
    font-size: 11px;
    font-weight: 800;
    pointer-events: none;
}

.img-preview-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.45);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    opacity: 0;
    transition: opacity .15s;
}

.img-preview-box:hover .img-preview-overlay { opacity: 1; }

.img-preview-overlay span {
    font-family: var(--head);
    font-size: 11px;
    font-weight: 900;
    color: #fff;
    background: var(--red);
    border: 2px solid #fff;
    border-radius: 6px;
    padding: 4px 10px;
}

.img-clear-btn {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 26px;
    height: 26px;
    background: #fff;
    border: 2px solid var(--black);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2;
    box-shadow: var(--shadow-sm);
    color: var(--red);
}

.img-clear-btn.show { display: flex; }

@keyframes spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 600px) {
    .admin-stats { grid-template-columns: repeat(2, 1fr); }
    .hero-badge-wrap { display: none; }
    .products-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .footer-inner { flex-direction: column; align-items: flex-start; gap: 8px; }
    .modal-foot { flex-direction: column-reverse; }
    .modal-foot .btn-primary,
    .modal-foot .btn-outline { width: 100%; justify-content: center; }
    .nav-link span { display: none; }
    .nav-brand svg { width: 20px; height: 20px; }
    .admin-hero-actions { width: 100%; }
    .admin-hero-actions .btn-primary,
    .admin-hero-actions .btn-outline { flex: 1; justify-content: center; }
}

@media (max-width: 360px) {
    .hero-stats { flex-direction: column; width: 100%; }
    .hero-stat-divider { width: 100%; height: 2px; }
}
