/* =========================
   RESET
========================= */
* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background: #f5f5f5;
}

a {
    text-decoration: none;
}

/* =========================
   CONTAINER
========================= */
.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 16px;
}

/* =========================
   STICKY HEADER
========================= */
.site-header-sticky {
    position: sticky;
    top: 0;
    z-index: 9999;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

/* =========================
   HEADER MAIN
========================= */
.header-main {
    background: #fff;
    padding: 12px 0;
}

.header-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 20px;
}

/* LOGO */
.logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo img {
    display: block;
    width: auto;
    max-height: 48px;
}

/* =========================
   SEARCH
========================= */
.search-wrap {
    width: 100%;
}

.search-form {
    position: relative;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
}

.search-form input {
    width: 100%;
    height: 42px;
    padding: 0 50px 0 18px;
    border: 1px solid #ddd;
    border-radius: 999px;
    background: #fff;
    font-size: 14px;
    outline: none;
}

.search-form input:focus {
    border-color: #049b00;
    box-shadow: 0 0 0 3px rgba(4, 155, 0, 0.12);
}

.search-form button {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: #666;
    font-size: 18px;
    cursor: pointer;
}

.search-form button:hover {
    color: #049b00;
}

/* =========================
   HEADER RIGHT
========================= */
.header-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
}

/* CONTACT */
.contact-box {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #444;
}

.contact-box i {
    font-size: 32px;
    color: #444;
}

.contact-text {
    line-height: 1.2;
}

.contact-text small {
    display: block;
    font-size: 12px;
    font-weight: bold;
    color: #666;
    text-transform: uppercase;
}

.contact-text strong {
    display: block;
    font-size: 15px;
    color: #111;
    white-space: nowrap;
}

/* =========================
   ACCOUNT + ICONS
========================= */
.account-cart {
    display: flex;
    align-items: center;
    gap: 14px;
}

.account-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #333;
    font-size: 13px;
}

.account-link i {
    font-size: 24px;
    color: #0a9b00;
}

.account-label {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.account-label span {
    font-size: 12px;
    color: #333;
}

.header-icons {
    display: flex;
    align-items: center;
    gap: 14px;
}

.header-icon-box {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    color: #444;
    font-size: 22px;
    cursor: pointer;
    transition: 0.2s ease;
}

.header-icon-box:hover {
    color: #049b00;
    transform: translateY(-2px);
}

.header-icon-badge {
    position: absolute;
    top: -3px;
    right: -6px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 10px;
    font-weight: bold;
    line-height: 16px;
    text-align: center;
    box-shadow: 0 0 0 2px #fff;
}

/* =========================
   MINI CART
========================= */
.cart-dropdown-wrap {
    position: relative;
}

.mini-cart {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 340px;
    display: none;
    background: #fff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    z-index: 10000;
}

.mini-cart.show {
    display: block;
}

.mini-cart-header {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 18px 14px;
    border-bottom: 1px solid #e5e7eb;
    font-size: 15px;
    color: #111827;
}

.mini-cart-close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 50%;
    background: #f3f4f6;
    color: #333;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

.mini-cart-body {
    padding: 0 18px 18px;
}

.mini-cart-item {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 0;
    border-bottom: 1px solid #e5e7eb;
}

.mini-cart-info {
    flex: 1;
}

.mini-cart-name {
    margin-bottom: 10px;
    font-size: 15px;
    line-height: 1.45;
    font-weight: bold;
    color: #111827;
    text-transform: uppercase;
}

.mini-cart-meta {
    font-size: 14px;
    color: #6b7280;
}

.mini-cart-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 78px;
    min-width: 78px;
    height: 78px;
    overflow: hidden;
    background: #f8fafc;
}

.mini-cart-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mini-cart-noimg {
    padding: 8px;
    font-size: 11px;
    color: #6b7280;
    text-align: center;
}

.mini-cart-subtotal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0 16px;
    font-size: 16px;
    font-weight: bold;
    color: #111827;
}

.mini-cart-btn-wrap {
    display: flex;
    gap: 8px;
}

.mini-cart-checkout-btn,
.mini-cart-keranjang-btn {
    display: block;
    flex: 1;
    padding: 14px 10px;
    color: #fff;
    text-align: center;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 0.3px;
}

.mini-cart-checkout-btn {
    background: #079400;
}

.mini-cart-checkout-btn:hover {
    background: #067d00;
    color: #fff;
}

.mini-cart-keranjang-btn {
    background: #1f2937;
}

.mini-cart-keranjang-btn:hover {
    background: #111827;
    color: #fff;
}

.mini-cart-empty {
    padding: 24px 18px;
    font-size: 14px;
    color: #6b7280;
}

/* =========================
   NAVBAR
========================= */
.navbar {
    position: relative;
    background: #049b00;
}

.nav-inner {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.mobile-toggle {
    display: none;
    padding: 14px 16px;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
}

.menu-item {
    position: relative;
}

.menu-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 12px;
    color: #fff;
    font-size: 13px;
    font-weight: bold;
}

.menu-link:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* DROPDOWN */
.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    display: none;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
    z-index: 10000;
}

.dropdown a {
    display: block;
    padding: 12px 14px;
    border-bottom: 1px solid #f1f1f1;
    color: #333;
    font-size: 14px;
}

.dropdown a:hover {
    background: #f8f8f8;
    color: #049b00;
}

.menu-item:hover .dropdown {
    display: block;
}

/* BUTTON CEK PESANAN */
.cek-order-btn {
    margin-left: auto;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    color: #fff;
    font-size: 13px;
    white-space: nowrap;
    cursor: pointer;
}

.cek-order-btn:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* =========================
   NOTIFICATION
========================= */
.cart-notif {
    position: fixed;
    top: 20px;
    left: 50%;
    z-index: 999999;
    padding: 12px 20px;
    border-radius: 999px;
    background: #16a34a;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transform: translateX(-50%) translateY(-12px);
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
}

.cart-notif.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* =========================
   MODAL CEK ORDER
========================= */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(0, 0, 0, 0.55);
}

.modal-overlay.open {
    display: flex;
}

.modal-box {
    width: 100%;
    max-width: 520px;
    overflow: hidden;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.2);
    animation: modalIn 0.25s ease;
}

@keyframes modalIn {
    from {
        transform: scale(0.95);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    background: #049b00;
}

.modal-head h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: #fff;
    font-size: 16px;
}

.modal-close-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 16px;
    cursor: pointer;
}

.modal-body {
    padding: 24px;
}

.cek-input-wrap {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

.cek-input-wrap input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 15px;
    outline: none;
}

.cek-input-wrap input:focus {
    border-color: #049b00;
    box-shadow: 0 0 0 3px rgba(4, 155, 0, 0.12);
}

.cek-input-wrap input::placeholder {
    color: #a0aec0;
}

.btn-cek {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    background: #049b00;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
}

.btn-cek:hover {
    background: #037a00;
}

.btn-cek:disabled {
    background: #a0aec0;
    cursor: not-allowed;
}

.cek-hint {
    margin-bottom: 18px;
    font-size: 12px;
    color: #a0aec0;
}

.cek-result {
    display: none;
}

.cek-result.show {
    display: block;
}

.cek-empty {
    padding: 28px 0;
    text-align: center;
    color: #a0aec0;
}

.cek-empty i {
    display: block;
    margin-bottom: 10px;
    font-size: 40px;
}

/* =========================
   ORDER CARD
========================= */
.order-card {
    margin-bottom: 12px;
    overflow: hidden;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
}

.order-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid #e2e8f0;
    background: #f7fafc;
}

.order-id {
    font-size: 14px;
    font-weight: 700;
    font-family: monospace;
    color: #049b00;
}

.order-date {
    font-size: 12px;
    color: #a0aec0;
}

.status-badge {
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

.st-pending {
    background: #fef3c7;
    color: #92400e;
}

.st-diproses {
    background: #dbeafe;
    color: #1e40af;
}

.st-dikirim {
    background: #ede9fe;
    color: #5b21b6;
}

.st-selesai {
    background: #d1fae5;
    color: #065f46;
}

.st-dibatalkan {
    background: #fee2e2;
    color: #991b1b;
}

.order-card-body {
    padding: 14px 16px;
    font-size: 14px;
}

.order-info-row {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    border-bottom: 1px solid #f1f5f9;
}

.order-info-row:last-child {
    border-bottom: none;
}

.order-info-row span {
    color: #718096;
}

.order-info-row strong {
    max-width: 60%;
    color: #1a202c;
    text-align: right;
}

/* ACTION BUTTONS */
.lanjut-bayar-btn,
.wa-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 8px;
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.lanjut-bayar-btn {
    padding: 12px;
    margin-top: 10px;
    background: linear-gradient(135deg, #049b00, #067a00);
}

.wa-btn {
    padding: 11px;
    background: #25d366;
}

/* =========================
   STATUS STEPPER
========================= */
.status-stepper {
    display: flex;
    align-items: center;
    margin: 16px 0 8px;
}

.step-item {
    position: relative;
    flex: 1;
    text-align: center;
}

.step-item::before {
    content: "";
    position: absolute;
    top: 14px;
    left: -50%;
    right: 50%;
    z-index: 0;
    height: 2px;
    background: #e2e8f0;
}

.step-item:first-child::before {
    display: none;
}

.step-item.done::before,
.step-item.active::before {
    background: #049b00;
}

.step-dot {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin: 0 auto 6px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #a0aec0;
    font-size: 12px;
    font-weight: 700;
}

.step-item.done .step-dot,
.step-item.active .step-dot {
    background: #049b00;
    color: #fff;
}

.step-item.active .step-dot {
    box-shadow: 0 0 0 4px rgba(4, 155, 0, 0.2);
}

.step-label {
    font-size: 11px;
    font-weight: 600;
    color: #a0aec0;
}

.step-item.done .step-label,
.step-item.active .step-label {
    color: #049b00;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 992px) {
    .header-inner {
        grid-template-columns: 1fr;
        gap: 12px;
        text-align: center;
    }

    .logo {
        justify-self: center;
    }

    .search-form {
        max-width: 100%;
    }

    .header-right {
        justify-content: center;
        flex-wrap: wrap;
    }

    .contact-box {
        justify-content: center;
    }
}

@media (max-width: 900px) {
    .contact-box {
        display: none;
    }
}

@media (max-width: 768px) {
    .header-main {
        padding: 10px 0;
    }

    .header-right {
        gap: 12px;
    }

    .account-cart {
        gap: 12px;
    }

    .account-label {
        display: none;
    }

    .nav-inner {
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .nav-inner.show {
        display: flex;
    }

    .mobile-toggle {
        display: block;
    }

    .menu-item {
        width: 100%;
    }

    .menu-link {
        justify-content: space-between;
        width: 100%;
        padding: 14px 16px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .dropdown {
        position: static;
        display: none;
        min-width: 100%;
        box-shadow: none;
    }

    .menu-item.open .dropdown {
        display: block;
    }

    .mini-cart {
        width: 320px;
        right: -20px;
    }

    .cek-order-btn {
        margin: 4px 8px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }

    .search-form input {
        height: 40px;
        font-size: 13px;
    }

    .header-icon-box {
        width: 28px;
        height: 28px;
        font-size: 20px;
    }

    .mini-cart {
        width: calc(100vw - 24px);
        right: -60px;
    }

    .cek-input-wrap {
        flex-direction: column;
    }

    .btn-cek {
        justify-content: center;
    }

    .order-card-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }
}

.cart-dropdown-wrap {
    position: relative;
}

.cart-dropdown-wrap:hover .mini-cart {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}