/* TRACK ORDER */

.track-order-section {
    padding: 40px;
    display: flex;
    justify-content: center;
}

.track-order-card {
    width: 100%;
    max-width: 700px;

    background: #1c1c1c;
    border-radius: 20px;
    padding: 30px;

    box-shadow:
        0 6px 18px rgba(0, 0, 0, 0.35),
        0 1px 0 rgba(255, 255, 255, 0.04) inset;
}

.track-title {
    font-size: 2.2rem;
    margin-bottom: 25px;
}

/* FORM */

.track-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 30px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.9rem;
    opacity: 0.8;
}

.form-group input {
    padding: 12px;
    border-radius: 10px;
    border: none;
    background: #111;
    color: #fff;
    outline: none;
    font-size: 0.95rem;
}

.form-group input:focus {
    box-shadow: 0 0 0 1px #4caf50;
}

/* BUTTON */

.btn-track-order {
    padding: 14px;
    border-radius: 10px;
    border: none;

    font-weight: 700;
    font-size: 1rem;

    background: linear-gradient(135deg, #4caf50, #2e7d32);
    color: #fff;

    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-track-order:hover {
    transform: translateY(-2px);
}

/* RESULT */

.order-result {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 25px;
}

.order-result.hidden {
    display: none;
}

.result-title {
    margin-bottom: 20px;
    font-size: 1.4rem;
}

/* META GRID */

.order-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.meta-card {
    background: #111;
    padding: 14px;
    border-radius: 12px;

    display: flex;
    flex-direction: column;
    gap: 4px;

    border: 1px solid rgba(255,255,255,0.05);
}

.meta-label {
    font-size: 0.8rem;
    opacity: 0.6;
}

.meta-value {
    font-size: 1rem;
    font-weight: 600;
}

/* STATUS WITH ICON */

.status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.status-icon {
    width: 14px;
    height: 14px;
    display: inline-flex;
}

.status-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

/* ENUM COLORS */

.status-confirmed {
    color: #03a9f4;
}

.status-shipped {
    color: #ff9800;
}

.status-delivered {
    color: #4caf50;
}

.status-cancelled {
    color: #f44336;
}

.status-returned {
    color: #9c27b0;
}

/* ITEMS */

.order-items {
    margin-top: 10px;
}

.order-items h3 {
    margin-bottom: 10px;
}

/* .items-list {
    list-style: none;
    padding: 0;
}

.items-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 10px 12px;
    border-radius: 10px;

    background: #111;
    border: 1px solid rgba(255,255,255,0.05);

    margin-bottom: 8px;
} */



/* ITEMS */

.order-items {
    margin-top: 10px;
}

.order-items h3 {
    margin-bottom: 12px;
}

/* LIST */

.items-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ITEM CARD */

.items-list li {
    position: relative;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 14px 14px 14px 16px;
    border-radius: 12px;

    background: linear-gradient(145deg, #111, #0d0d0d);
    border: 1px solid rgba(255,255,255,0.06);

    transition: all 0.2s ease;
}

/* LEFT ACCENT BAR */

.items-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    bottom: 8px;
    width: 3px;
    border-radius: 4px;

    background: linear-gradient(180deg, #4caf50, #2e7d32);
    opacity: 0.8;
}

/* HOVER */

.items-list li:hover {
    transform: translateY(-2px);
    border-color: rgba(76,175,80,0.3);
    box-shadow: 0 6px 14px rgba(0,0,0,0.4);
}

/* CONTENT */

.item-left {
    display: flex;
    flex-direction: column;
}

.item-name {
    font-size: 0.95rem;
    font-weight: 500;
}

/* QTY BADGE */

.item-right {
    display: flex;
    align-items: center;
}

.item-qty {
    padding: 4px 10px;
    border-radius: 999px;

    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.08);

    font-size: 0.8rem;
    font-weight: 600;

    letter-spacing: 0.5px;
}


.item-name {
    font-size: 0.95rem;
}

.item-qty {
    font-weight: 600;
    opacity: 0.8;
}

/* TOAST */

.toast {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translate(-50%, -120%);

    padding: 18px 32px;
    border-radius: 14px;
    font-weight: 600;

    opacity: 0;
    z-index: 9999;

    transition: transform 0.6s cubic-bezier(.22,1,.36,1), opacity 0.3s ease;
}

.toast.show {
    transform: translate(-50%, 40px);
    opacity: 1;
}

/* RESPONSIVE */

@media (max-width: 768px) {

    .track-order-section {
        padding: 20px;
    }

    .track-title {
        font-size: 1.8rem;
    }

    .order-meta-grid {
        grid-template-columns: 1fr;
    }

}